From 09d83897d50226f3fe7f287ca5a78068e0a3b2b2 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sat, 29 Mar 2025 16:37:56 +0300 Subject: test: simplify question flow test by removing unused imports --- internal/handlers/handlers_test.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'internal/handlers') diff --git a/internal/handlers/handlers_test.go b/internal/handlers/handlers_test.go index 429491f..33c7297 100644 --- a/internal/handlers/handlers_test.go +++ b/internal/handlers/handlers_test.go @@ -1,20 +1,15 @@ package handlers import ( - "log/slog" - "net/http" - "net/http/httptest" - "os" "testing" - "demoon/config" "github.com/playwright-community/playwright-go" "github.com/stretchr/testify/assert" ) func TestQuestionFlow(t *testing.T) { assert := assert.New(t) - + // Use running server serverURL := "http://localhost:9000" @@ -35,7 +30,7 @@ func TestQuestionFlow(t *testing.T) { // Test 1: Load page and verify question _, err = page.Goto(serverURL) assert.NoError(err) - + questionText, err := page.Locator(".question-text").TextContent() assert.NoError(err) assert.Contains(questionText, "Zweifel") -- cgit v1.2.3