Separate out into files
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user