Update e2e tests to use specific button names for placing instances
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user