mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-24 18:40:44 +02:00
fix up tests
This commit is contained in:
@@ -12,5 +12,8 @@ test(
|
||||
await expect(page.locator("p.text-sm").nth(0)).toHaveText(
|
||||
/^Assistants are a way to build/
|
||||
);
|
||||
|
||||
const generalTextLocator = page.locator("tr.border-b td").nth(1);
|
||||
await expect(generalTextLocator.locator("p.text")).toHaveText("General");
|
||||
}
|
||||
);
|
||||
|
@@ -28,10 +28,6 @@ test(
|
||||
|
||||
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();
|
||||
await page.getByPlaceholder("Send a message ");
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user