From f3a93b3439021c9ce3e98ae355bffa6b0d89bd4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 7 Jul 2026 23:30:19 +0200 Subject: [PATCH] test(e2e): mark the heavy share-lifecycle and med-wizard flows slow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both are legitimately long end-to-end flows — the share test spans two browser contexts (owner create + picker, recipient unlock, multiple document serves, revoke), and the med wizard gates its Next button on per-step validation. On a loaded CI runner the default 30s timeout races the settle; test.slow() triples it so transient runner contention stops flaking green flows. --- e2e/medications-wizard-daily.spec.ts | 4 ++++ e2e/share-documents.spec.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/e2e/medications-wizard-daily.spec.ts b/e2e/medications-wizard-daily.spec.ts index 7b62a9670..5bdb3855a 100644 --- a/e2e/medications-wizard-daily.spec.ts +++ b/e2e/medications-wizard-daily.spec.ts @@ -29,6 +29,10 @@ test.describe("medication wizard — daily", () => { test.use({ storageState: STORAGE_STATE_PATH }); test("creates a daily medication end-to-end", async ({ page }) => { + // Multi-step wizard with per-step validation gating the Next button; + // under a loaded CI runner the validation settle can lag the default + // 30s, so this legitimately-long flow earns the tripled timeout. + test.slow(); await stubDashboardAnalytics(page); const capture = mockMedicationsApi(page, { id: STUB_MEDICATION_ID, diff --git a/e2e/share-documents.spec.ts b/e2e/share-documents.spec.ts index 0de778656..d6c81f481 100644 --- a/e2e/share-documents.spec.ts +++ b/e2e/share-documents.spec.ts @@ -136,6 +136,11 @@ test.describe("clinician document sharing", () => { page, browser, }) => { + // A full lifecycle across two browser contexts (owner create + picker, + // recipient unlock, several document serves, revoke): legitimately heavy, + // so it earns the tripled timeout rather than racing the default 30s on a + // loaded CI runner. + test.slow(); const share = await createShareWithDocs(page); const clinician = await openUnlockedClinician(browser, share);