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.
This commit is contained in:
Marc-André Bombeck committed 2026-05-17 23:55:52 +02:00
1 parent 61208da6ec
commit 6ea1c77532
2 files changed
+8 -4

No files matched your search

+4 -3
View File
@@ -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
+4 -1
View File
@@ -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",