diff --git a/e2e/lazy-widgets.spec.ts b/e2e/lazy-widgets.spec.ts index 61dd87ff3..4ae7d4f72 100644 --- a/e2e/lazy-widgets.spec.ts +++ b/e2e/lazy-widgets.spec.ts @@ -78,7 +78,7 @@ describe("lazy widget application graph", () => { await page.goto(`${baseUrl}/auth/login`); await page.getByLabel("Username").fill(adminCredentials.username); await page.locator("#password").fill(adminCredentials.password); - const signedIn = page.waitForURL(baseUrl, { waitUntil: "commit", timeout: 15_000 }); + const signedIn = page.waitForURL(baseUrl, { waitUntil: "commit", timeout: 60_000 }); await page.locator("css=button[type='submit']").click(); await signedIn; @@ -86,7 +86,7 @@ describe("lazy widget application graph", () => { const clockWidget = page.locator( `[data-id="${itemId}"] .clock-widget-container, [data-grid-item-id="${itemId}"] .clock-widget-container`, ); - await expect(clockWidget).toBeVisible({ timeout: 15_000 }); + await expect(clockWidget.filter({ visible: true }).first()).toBeVisible({ timeout: 30_000 }); await expect(page.locator("[data-homarr-dev-benchmark-spotlight-preloaded]")).toHaveCount(1, { timeout: 15_000, @@ -109,7 +109,7 @@ describe("lazy widget application graph", () => { .toBe(`${baseUrl}/`); await page.reload(); - await expect(clockWidget).toBeVisible({ timeout: 15_000 }); + await expect(clockWidget.filter({ visible: true }).first()).toBeVisible({ timeout: 30_000 }); expect(pageErrors).toEqual([]); } finally { await browser.close();