From e559e4cad7b65f2724ab9a7d9bfd815507d8839f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 2 Apr 2026 22:40:05 +0200 Subject: [PATCH] Update tests to use new viewport canvas selector --- tests/e2e/local-lights-and-background.e2e.ts | 4 ++-- tests/e2e/world-environment.e2e.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/e2e/local-lights-and-background.e2e.ts b/tests/e2e/local-lights-and-background.e2e.ts index 49ffb5ab..f6f63b2e 100644 --- a/tests/e2e/local-lights-and-background.e2e.ts +++ b/tests/e2e/local-lights-and-background.e2e.ts @@ -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(); diff --git a/tests/e2e/world-environment.e2e.ts b/tests/e2e/world-environment.e2e.ts index 82ecc703..41dff903 100644 --- a/tests/e2e/world-environment.e2e.ts +++ b/tests/e2e/world-environment.e2e.ts @@ -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();