summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-03-29 16:37:56 +0300
committerGrail Finder (aider) <wohilas@gmail.com>2025-03-29 16:37:56 +0300
commit09d83897d50226f3fe7f287ca5a78068e0a3b2b2 (patch)
treeab14161c4791e3dad8ac34345e8c51e8d9f31932
parentc6d2d6e65b33dfa880156c9020f70f0512861b24 (diff)
test: simplify question flow test by removing unused imports
-rw-r--r--internal/handlers/handlers_test.go9
1 files changed, 2 insertions, 7 deletions
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")