Skip to content

Commit 760ff02

Browse files
Fix SearchQnA UT failed (#2306)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d7f0d0a commit 760ff02

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SearchQnA/ui/svelte/tests/searchQnA.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
import { test, expect, type Page } from "@playwright/test";
55

6+
test.setTimeout(5 * 60 * 1000);
7+
68
// Initialization before each test
79
test.beforeEach(async ({ page }) => {
810
await page.goto("/");
@@ -16,8 +18,8 @@ async function enterMessageToChat(page: Page, message: string) {
1618
await page.getByTestId("chat-input").click();
1719
await page.getByTestId("chat-input").fill(message);
1820
await page.getByTestId("chat-input").press("Enter");
19-
await page.waitForTimeout(10000);
20-
await expect(page.getByTestId("display-answer")).toBeVisible();
21+
22+
await expect(page.getByTestId("display-answer")).toBeVisible({ timeout: 5 * 60 * 1000 });
2123
}
2224

2325
// Test description: New Chat

0 commit comments

Comments
 (0)