added loading screen
This commit is contained in:
@@ -255,6 +255,16 @@ test("section unveiling respects reduced-motion preferences", async ({
|
||||
).toBe(0);
|
||||
});
|
||||
|
||||
test("the woven loading page introduces the site and clears", async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto("/");
|
||||
const loader = page.locator(".loader");
|
||||
await expect(loader).toContainText("Loading Radhe Radhe Synthetics");
|
||||
await expect(page.locator(".loader__canvas")).toHaveCount(1);
|
||||
await expect(loader).toHaveCount(0, { timeout: 3500 });
|
||||
});
|
||||
|
||||
test("unknown route provides a way home", async ({ page }) => {
|
||||
await page.goto("/missing-page");
|
||||
await expect(page.getByRole("heading", { level: 1 })).toHaveText(
|
||||
|
||||
Reference in New Issue
Block a user