mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 23:33:29 +00:00
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:
1 parent
61208da6ec
commit
6ea1c77532
2 files changed
+8
-4
No files matched your search
@@ -63,9 +63,10 @@ test.describe("doctor report PDF generation", () => {
|
|||||||
|
|
||||||
await page.goto("/settings/export", { waitUntil: "domcontentloaded" });
|
await page.goto("/settings/export", { waitUntil: "domcontentloaded" });
|
||||||
|
|
||||||
// The card carries a stable testid so the e2e suite can target it
|
// v1.4.37 renamed the trigger testid from `export-action-doctor-report`
|
||||||
// without depending on the localised "Configure & generate" label.
|
// to `export-hero-doctor-report-action` when the card was lifted to a
|
||||||
const reportBtn = page.getByTestId("export-action-doctor-report");
|
// hero block on the export page.
|
||||||
|
const reportBtn = page.getByTestId("export-hero-doctor-report-action");
|
||||||
await expect(reportBtn).toBeVisible({ timeout: 10_000 });
|
await expect(reportBtn).toBeVisible({ timeout: 10_000 });
|
||||||
|
|
||||||
// Click opens the dialog; the dialog's submit button triggers the PDF
|
// Click opens the dialog; the dialog's submit button triggers the PDF
|
||||||
|
|||||||
@@ -22,8 +22,11 @@ test.describe("Settings → Export", () => {
|
|||||||
page,
|
page,
|
||||||
}) => {
|
}) => {
|
||||||
await page.goto("/settings/export", { waitUntil: "domcontentloaded" });
|
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 [
|
for (const id of [
|
||||||
"export-card-doctor-report",
|
"export-hero-doctor-report",
|
||||||
"export-card-measurements-csv",
|
"export-card-measurements-csv",
|
||||||
"export-card-medications-csv",
|
"export-card-medications-csv",
|
||||||
"export-card-mood-csv",
|
"export-card-mood-csv",
|
||||||
|
|||||||
Reference in new issue
Block a user