From d34c578ad85f2e2685ae98156ef70ce32eb7e339 Mon Sep 17 00:00:00 2001 From: Oier Bravo Urtasun Date: Mon, 18 May 2026 06:31:35 +0200 Subject: [PATCH] test(fase-13): bump SA-01 + SA-04 timeout to 60s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both tests do two full Keycloak login flows + a /lists hydration. Under accumulated dev-DB load (many leftover lists from prior suites) the 30s default occasionally trips, even though the actual work completes in ~5–7s on a clean DB. 60s is comfortable headroom and matches the pattern used elsewhere when a test legitimately needs more. Co-Authored-By: Claude Opus 4.7 --- apps/web/tests/e2e/admin.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/web/tests/e2e/admin.test.ts b/apps/web/tests/e2e/admin.test.ts index 16270ef..85fe372 100644 --- a/apps/web/tests/e2e/admin.test.ts +++ b/apps/web/tests/e2e/admin.test.ts @@ -167,6 +167,9 @@ test.describe('Server administration UI', () => { test('SA-01: Ana sees the admin link + can reach /admin; Borja does not and gets bounced from /admin', async ({ browser }) => { + // Two full login flows (Ana + Borja) push this past 30s when the dev + // DB has accumulated state from prior suites. 60s mirrors SA-04. + test.setTimeout(60_000); // Ana await withAnaPage(browser, async (page) => { await expect(page.getByTestId('sidebar-admin-link')).toBeVisible(); @@ -259,6 +262,10 @@ test.describe('Server administration UI', () => { }); test('SA-04: server-level OFF for notes wins over collective ON', async ({ browser }) => { + // Two full login flows + a /lists hydration push this past the 30s default + // under accumulated dev-DB load. 60s is comfortable headroom; the test + // runs in ~7s on a clean DB. + test.setTimeout(60_000); await withAnaPage(browser, async (page) => { // Make sure collective has notes ON explicitly (admin override). await page.evaluate(async () => {