diff options
author | Grail Finder <wohilas@gmail.com> | 2025-04-05 14:36:18 +0300 |
---|---|---|
committer | Grail Finder (aider) <wohilas@gmail.com> | 2025-04-05 14:36:18 +0300 |
commit | fe7c14d271669b8d10ca0dd717b8cbc056f3b40a (patch) | |
tree | 82f50fee5162ae7f0c3f0b3397ace395edb6fa47 | |
parent | 57681c509de8cf56db4f34902a1fed3380903eb1 (diff) |
test: Reduce test timeouts in question flow tests
-rw-r--r-- | internal/handlers/handlers_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/handlers/handlers_test.go b/internal/handlers/handlers_test.go index ef973c9..f9364db 100644 --- a/internal/handlers/handlers_test.go +++ b/internal/handlers/handlers_test.go @@ -30,14 +30,14 @@ func TestQuestionFlow(t *testing.T) { // Test 1: Load page and verify question _, err = page.Goto(serverURL, playwright.PageGotoOptions{ WaitUntil: playwright.WaitUntilStateNetworkidle, - Timeout: playwright.Float(10000), + Timeout: playwright.Float(3000), }) assert.NoError(err, "Failed to load page") // Wait for question to appear err = page.Locator(".question-text").WaitFor(playwright.LocatorWaitForOptions{ State: playwright.WaitForSelectorStateVisible, - Timeout: playwright.Float(5000), + Timeout: playwright.Float(1000), }) assert.NoError(err, "Question text did not appear") @@ -51,7 +51,7 @@ func TestQuestionFlow(t *testing.T) { locator := page.Locator("button:has-text('" + opt + "')") err := locator.WaitFor(playwright.LocatorWaitForOptions{ State: playwright.WaitForSelectorStateVisible, - Timeout: playwright.Float(3000), + Timeout: playwright.Float(1000), }) assert.NoError(err, "Option button '%s' not found", opt) visible, err := locator.IsVisible() |