feat(test): M5.3 — Playwright e2e harness for the dev stack
playwright.config.ts + tests/e2e/{apex,tenant,health}.spec.ts. make e2e for local. CI e2e job opt-in via RUN_E2E repo variable. OIDC click-through deferred to when stage is up.
Refs: M5.3
This commit was merged in pull request #8.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { expect, test } from "@playwright/test";
|
||||
|
||||
// Apex tests don't need the OIDC dance — they just verify Next.js is
|
||||
// serving the right routes.
|
||||
|
||||
test.describe("apex landing", () => {
|
||||
test("renders the landing page @needs-stack", async ({ page }) => {
|
||||
const apex = test.info().config.metadata?.apexURL ?? "http://localhost:3000";
|
||||
await page.goto(apex);
|
||||
await expect(page.getByRole("heading", { name: "Breakpilot" })).toBeVisible();
|
||||
await expect(page.getByText(/Customer portals live at/)).toBeVisible();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user