fix: add sleep to wait for page to load
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
1bdc1e0dbb
commit
eb2353cdb5
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ export default class User {
|
||||||
// await dropdown.getByRole("link", { name: "Sign Out" }).click();
|
// await dropdown.getByRole("link", { name: "Sign Out" }).click();
|
||||||
await dropdown.getByText("Sign Out").waitFor();
|
await dropdown.getByText("Sign Out").waitFor();
|
||||||
await dropdown.getByText("Sign Out").click();
|
await dropdown.getByText("Sign Out").click();
|
||||||
|
await new Promise(r => setTimeout(r, 3000));
|
||||||
await page.waitForURL(config.INSTANCE_URL.toString());
|
await page.waitForURL(config.INSTANCE_URL.toString());
|
||||||
|
|
||||||
await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");
|
await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");
|
||||||
|
|
Loading…
Reference in a new issue