Update tests to use new viewport canvas selector
This commit is contained in:
@@ -29,7 +29,7 @@ test("local lights and background images persist through editor and runner flows
|
||||
await expect(page.getByTestId("asset-list")).toContainText("skybox-panorama.svg");
|
||||
await expect(page.getByTestId("world-background-mode-value")).toContainText("Image");
|
||||
await expect(page.getByTestId("world-background-asset-value")).toContainText("skybox-panorama.svg");
|
||||
await expect(page.getByTestId("viewport-shell")).toHaveCSS("background-image", /url/);
|
||||
await expect(page.getByTestId("viewport-canvas-topLeft")).toHaveCSS("background-image", /url/);
|
||||
|
||||
await page.getByTestId("add-entity-pointLight").click();
|
||||
await expect(page.getByTestId("point-light-distance")).toHaveValue("8");
|
||||
@@ -52,7 +52,7 @@ test("local lights and background images persist through editor and runner flows
|
||||
|
||||
await expect(page.getByTestId("asset-list")).toContainText("skybox-panorama.svg");
|
||||
await expect(page.locator('[data-testid^="outliner-entity-"]')).toHaveCount(2);
|
||||
await expect(page.getByTestId("viewport-shell")).toHaveCSS("background-image", /url/);
|
||||
await expect(page.getByTestId("viewport-canvas-topLeft")).toHaveCSS("background-image", /url/);
|
||||
|
||||
await page.getByTestId("enter-run-mode").click();
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ test("world environment settings persist and carry into the runner", async ({ pa
|
||||
await page.getByTestId("world-sun-direction-x").press("Tab");
|
||||
|
||||
await expect(page.getByTestId("world-background-mode-value")).toContainText("Vertical Gradient");
|
||||
await expect(page.getByTestId("viewport-shell")).toHaveCSS("background-image", /linear-gradient/);
|
||||
await expect(page.getByTestId("viewport-canvas-topLeft")).toHaveCSS("background-image", /linear-gradient/);
|
||||
|
||||
await page.getByRole("button", { name: "Save Draft" }).click();
|
||||
|
||||
@@ -55,7 +55,7 @@ test("world environment settings persist and carry into the runner", async ({ pa
|
||||
|
||||
await expect(page.getByTestId("world-background-mode-value")).toContainText("Vertical Gradient");
|
||||
await expect(page.getByTestId("world-ambient-intensity")).toHaveValue("0.45");
|
||||
await expect(page.getByTestId("viewport-shell")).toHaveCSS("background-image", /linear-gradient/);
|
||||
await expect(page.getByTestId("viewport-canvas-topLeft")).toHaveCSS("background-image", /linear-gradient/);
|
||||
|
||||
await page.getByTestId("enter-run-mode").click();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user