mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
wait for the page to load
This commit is contained in:
parent
ef9942b751
commit
0a35422d1d
@ -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();
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user