fix: add sleep to wait for page to load
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Aravinth Manivannan 2024-01-10 21:00:54 +05:30
parent 1bdc1e0dbb
commit eb2353cdb5
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -44,6 +44,7 @@ export default class User {
// await dropdown.getByRole("link", { name: "Sign Out" }).click();
await dropdown.getByText("Sign Out").waitFor();
await dropdown.getByText("Sign Out").click();
await new Promise(r => setTimeout(r, 3000));
await page.waitForURL(config.INSTANCE_URL.toString());
await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");