diff --git a/scripts/playwright-pr-mapping.mjs b/scripts/playwright-pr-mapping.mjs index 7c8669ad..b1c47099 100644 --- a/scripts/playwright-pr-mapping.mjs +++ b/scripts/playwright-pr-mapping.mjs @@ -33,6 +33,15 @@ export const sourceMappings = [ specs: ["tests/e2e/superuser-roles-permissions.spec.ts"], projects: chromiumProjects, }, + { + name: "superuser-dashboard", + patterns: [ + /^src\/views\/dashboards\/superUserDashboard\/SuperUserDashboard(?:Navigation)?\.vue$/u, + /^src\/components\/displays\/superuser\/system\//u, + ], + specs: ["tests/e2e/superuser-system-status.smoke.spec.js"], + projects: chromiumProjects, + }, { name: "booking", patterns: [/bookings?/iu, /time-bookings/iu, /^src\/views\/guest\/book\//u], diff --git a/tests/unit/playwright-pr-mapping.spec.js b/tests/unit/playwright-pr-mapping.spec.js index 5eab9e4e..ded22975 100644 --- a/tests/unit/playwright-pr-mapping.spec.js +++ b/tests/unit/playwright-pr-mapping.spec.js @@ -33,6 +33,15 @@ describe("Playwright PR mapping", () => { ); }); + it("maps superuser dashboard shell changes to system status E2E coverage", () => { + expect(specsFor("src/views/dashboards/superUserDashboard/SuperUserDashboardNavigation.vue")).toContain( + "tests/e2e/superuser-system-status.smoke.spec.js" + ); + expect(specsFor("src/components/displays/superuser/system/SystemStatusDashboard.vue")).toContain( + "tests/e2e/superuser-system-status.smoke.spec.js" + ); + }); + it("keeps full-slice ownership metadata out of broad PR smoke fallback", () => { expect(triggersFallback("scripts/run-playwright-pr.mjs")).toBe(true); expect(triggersFallback("scripts/run-playwright-ci-parallel.mjs")).toBe(true);