From eb2353cdb5ae5de5f8d7f594f43159f51c7260bd Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Wed, 10 Jan 2024 21:00:54 +0530 Subject: [PATCH] fix: add sleep to wait for page to load --- tests/user.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/user.ts b/tests/user.ts index 09487d3..1d65308 100644 --- a/tests/user.ts +++ b/tests/user.ts @@ -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.");