mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-04 12:58:42 +02:00
wait for the page to load
This commit is contained in:
@@ -27,5 +27,11 @@ test(
|
||||
await page.click('button[type="submit"]');
|
||||
|
||||
await page.waitForURL("http://localhost:3000/chat");
|
||||
|
||||
// Create the locator (no waiting happens here)
|
||||
const textarea = page.locator('textarea[placeholder="Send a message "]');
|
||||
|
||||
// Explicitly wait for the textarea to be visible
|
||||
await expect(textarea).toBeVisible();
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user