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",