Separate out into files

This commit is contained in:
2026-07-22 11:37:46 +00:00
parent 6aed7606ad
commit 5a514906eb
11 changed files with 906 additions and 657 deletions

View File

@@ -1,6 +1,7 @@
import { expect, test, type Page } from "@playwright/test";
async function captureTransitions(page: Page) {
await page.locator(".nvr-router-view").waitFor({ state: "attached" });
await page.evaluate(() => {
const state = window as typeof window & {
__nvrEvents?: Array<{
@@ -260,7 +261,7 @@ test("renders a suspended pushed sibling and evicts it after backing out", async
"page",
);
await expect(page.getByTestId("async-data-ready")).toBeVisible({
timeout: 2_000,
timeout: 4_000,
});
const lab = page.getByTestId("runtime-lab-view");
@@ -278,7 +279,7 @@ test("renders a suspended pushed sibling and evicts it after backing out", async
await expect(page).toHaveURL(/\/profile\/runtime-lab$/);
await expect(page.getByTestId("async-data-loading")).toBeVisible();
await expect(page.getByTestId("async-data-ready")).toBeVisible({
timeout: 2_000,
timeout: 4_000,
});
await expect(page.getByTestId("runtime-lab-view")).not.toHaveAttribute(
"data-mount-id",