diff --git a/tests/e2e/local-lights-and-background.e2e.ts b/tests/e2e/local-lights-and-background.e2e.ts index 50d2e32b..55e24081 100644 --- a/tests/e2e/local-lights-and-background.e2e.ts +++ b/tests/e2e/local-lights-and-background.e2e.ts @@ -31,7 +31,10 @@ test("local lights and background images persist through editor and runner flows await page.getByTestId("import-menu-environment").click(); await page.locator('input[type="file"][accept*="image"]').setInputFiles(panoramaFixturePath); - await expect(page.getByTestId("asset-list")).toContainText("skybox-panorama.svg"); + await page.getByTestId("outliner-add-button").click(); + await page.getByTestId("add-menu-assets").click(); + await page.getByTestId("add-menu-assets-environments").click(); + await expect(page.getByRole("button", { name: "skybox-panorama.svg" })).toBeVisible(); 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-canvas-topLeft")).toHaveCSS("background-image", /url/); @@ -65,7 +68,10 @@ test("local lights and background images persist through editor and runner flows await page.reload(); - await expect(page.getByTestId("asset-list")).toContainText("skybox-panorama.svg"); + await page.getByTestId("outliner-add-button").click(); + await page.getByTestId("add-menu-assets").click(); + await page.getByTestId("add-menu-assets-environments").click(); + await expect(page.getByRole("button", { name: "skybox-panorama.svg" })).toBeVisible(); await expect(page.locator('[data-testid^="outliner-entity-"]')).toHaveCount(2); await expect(page.getByTestId("viewport-canvas-topLeft")).toHaveCSS("background-image", /url/);