26 lines
788 B
JavaScript
26 lines
788 B
JavaScript
import { expect, test } from "@playwright/test";
|
|
import { mockApi } from "./support/network.js";
|
|
|
|
test.describe("Public route smoke", () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await mockApi(page);
|
|
});
|
|
|
|
test("@smoke @pr app boot loads landing page", async ({ page }) => {
|
|
await page.goto("/");
|
|
await expect(page).toHaveURL(/\/$/);
|
|
await expect(page.getByTestId("landing-title")).toContainText("Truck Wash");
|
|
});
|
|
|
|
test("@smoke key guest routes are reachable", async ({ page }) => {
|
|
await page.goto("/about-us");
|
|
await expect(page).toHaveURL(/\/about-us$/);
|
|
|
|
await page.goto("/privacy-policy");
|
|
await expect(page).toHaveURL(/\/privacy-policy$/);
|
|
|
|
await page.goto("/guest/home");
|
|
await expect(page).toHaveURL(/\/guest\/home$/);
|
|
});
|
|
});
|