fixing chromatic tests (#3344)

* wait for the page to load

* fix up tests

* make sure "Initializing Danswer" is gone
This commit is contained in:
rkuo-danswer 2024-12-04 18:19:43 -08:00 committed by GitHub
parent fd1999454a
commit 91d44c83d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -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");
}
);

View File

@ -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"
);
}
);