mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
fixing chromatic tests (#3344)
* wait for the page to load * fix up tests * make sure "Initializing Danswer" is gone
This commit is contained in:
parent
fd1999454a
commit
91d44c83d2
@ -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");
|
||||
}
|
||||
);
|
||||
|
@ -27,5 +27,11 @@ test(
|
||||
await page.click('button[type="submit"]');
|
||||
|
||||
await page.waitForURL("http://localhost:3000/chat");
|
||||
|
||||
await page.getByPlaceholder("Send a message ");
|
||||
|
||||
await expect(page.locator("body")).not.toContainText(
|
||||
"Initializing Danswer"
|
||||
);
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user