From 6ea1c77532a7c034b47e7284db0e596b91ea2fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 17 May 2026 23:55:52 +0200 Subject: [PATCH] test(e2e): point doctor-report specs at the v1.4.37 hero-card testids v1.4.37 lifted the doctor-report card from the export-tile grid to a hero block on the export page; the test-ids renamed from `export-card-doctor-report` / `export-action-doctor-report` to `export-hero-doctor-report` / `export-hero-doctor-report-action`. The Playwright suite still targeted the old ids and timed out on every run since. Updates the two affected specs. --- e2e/doctor-report.spec.ts | 7 ++++--- e2e/settings-export.spec.ts | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/e2e/doctor-report.spec.ts b/e2e/doctor-report.spec.ts index 3abf401a7..1a2bc3378 100644 --- a/e2e/doctor-report.spec.ts +++ b/e2e/doctor-report.spec.ts @@ -63,9 +63,10 @@ test.describe("doctor report PDF generation", () => { await page.goto("/settings/export", { waitUntil: "domcontentloaded" }); - // The card carries a stable testid so the e2e suite can target it - // without depending on the localised "Configure & generate" label. - const reportBtn = page.getByTestId("export-action-doctor-report"); + // v1.4.37 renamed the trigger testid from `export-action-doctor-report` + // to `export-hero-doctor-report-action` when the card was lifted to a + // hero block on the export page. + const reportBtn = page.getByTestId("export-hero-doctor-report-action"); await expect(reportBtn).toBeVisible({ timeout: 10_000 }); // Click opens the dialog; the dialog's submit button triggers the PDF diff --git a/e2e/settings-export.spec.ts b/e2e/settings-export.spec.ts index 54b8a8242..b8150aa4f 100644 --- a/e2e/settings-export.spec.ts +++ b/e2e/settings-export.spec.ts @@ -22,8 +22,11 @@ test.describe("Settings → Export", () => { page, }) => { await page.goto("/settings/export", { waitUntil: "domcontentloaded" }); + // v1.4.37 lifted the doctor-report card to a hero block with the + // `export-hero-*` testid prefix; the four CSV/backup tiles keep + // the `export-card-*` shape. for (const id of [ - "export-card-doctor-report", + "export-hero-doctor-report", "export-card-measurements-csv", "export-card-medications-csv", "export-card-mood-csv",