Update e2e test for asset addition and visibility

This commit is contained in:
2026-04-03 00:44:55 +02:00
parent e68438083d
commit 9dfb3db3e7

View File

@@ -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/);