Update e2e tests to use specific button names for placing instances

This commit is contained in:
2026-04-02 23:31:44 +02:00
parent c73c9b5cc7
commit aa52d62098
3 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ test("imports a draco-compressed glb asset, places an instance, and survives rel
await expect(page.getByTestId("asset-list").getByText("tiny-triangle-draco.glb", { exact: true })).toBeVisible();
await expect(page.getByTestId("outliner-model-instance-list").getByRole("button")).toHaveCount(1);
await page.getByRole("button", { name: /tiny-triangle-draco\.glb/i }).click();
await page.getByRole("button", { name: "Place instance for tiny-triangle-draco.glb" }).click();
await expect(page.getByTestId("outliner-model-instance-list").getByRole("button")).toHaveCount(2);
await page.getByRole("button", { name: "Save Draft" }).click();

View File

@@ -29,9 +29,9 @@ test("imports a gltf asset with external resources and survives reload", async (
await expect(page.getByTestId("asset-list")).not.toContainText("Storage key:");
await expect(page.getByTestId("outliner-model-instance-list").getByRole("button")).toHaveCount(1);
await page.getByRole("button", { name: /scene\.gltf/i }).hover();
await page.getByRole("button", { name: "Place instance for scene.gltf" }).hover();
await expect(page.getByTestId("status-asset-hover")).toContainText("Storage key:");
await page.getByRole("button", { name: /scene\.gltf/i }).click();
await page.getByRole("button", { name: "Place instance for scene.gltf" }).click();
await expect(page.getByTestId("outliner-model-instance-list").getByRole("button")).toHaveCount(2);
await page.getByRole("button", { name: "Save Draft" }).click();

View File

@@ -28,9 +28,9 @@ test("imports a model asset, places an instance, and survives reload", async ({
await expect(page.getByTestId("asset-list")).not.toContainText("Storage key:");
await expect(page.getByTestId("outliner-model-instance-list").getByRole("button")).toHaveCount(1);
await page.getByRole("button", { name: /tiny-triangle\.gltf/i }).hover();
await page.getByRole("button", { name: "Place instance for tiny-triangle.gltf" }).hover();
await expect(page.getByTestId("status-asset-hover")).toContainText("Storage key:");
await page.getByRole("button", { name: /tiny-triangle\.gltf/i }).click();
await page.getByRole("button", { name: "Place instance for tiny-triangle.gltf" }).click();
await expect(page.getByTestId("outliner-model-instance-list").getByRole("button")).toHaveCount(2);
await page.getByRole("button", { name: "Save Draft" }).click();