Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

test(e2e): wait longer for the sign-in redirect

Mohamed Bassem0c1be8f6be79
diff --git a/packages/e2e_tests/utils/browser.ts b/packages/e2e_tests/utils/browser.ts
index 41478dd3..7554be90 100644
--- a/packages/e2e_tests/utils/browser.ts
+++ b/packages/e2e_tests/utils/browser.ts
@@ -29,7 +29,10 @@ export async function signIn(page: Page, email: string) {
await page.getByLabel("Email", { exact: true }).fill(email);
await page.getByLabel("Password", { exact: true }).fill("test1234");
await page.getByRole("button", { name: "Sign In", exact: true }).click();
- await expect(page).toHaveURL(/\/dashboard\/bookmarks$/);
+ // Signing in verifies the password and then redirects through / to the
+ // dashboard. While other test files are hashing passwords for their users,
+ // this can take well over the default 5s expect timeout.
+ await expect(page).toHaveURL(/\/dashboard\/bookmarks$/, { timeout: 30000 });
}
export async function createWebTestUser() {