diff --git a/tests/e2e/import-draco-model-asset.e2e.ts b/tests/e2e/import-draco-model-asset.e2e.ts index 36bbcf95..37b103b0 100644 --- a/tests/e2e/import-draco-model-asset.e2e.ts +++ b/tests/e2e/import-draco-model-asset.e2e.ts @@ -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(); diff --git a/tests/e2e/import-external-model-asset.e2e.ts b/tests/e2e/import-external-model-asset.e2e.ts index 354c719c..7bccee0f 100644 --- a/tests/e2e/import-external-model-asset.e2e.ts +++ b/tests/e2e/import-external-model-asset.e2e.ts @@ -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(); diff --git a/tests/e2e/import-model-asset.e2e.ts b/tests/e2e/import-model-asset.e2e.ts index bb254f50..103f3a12 100644 --- a/tests/e2e/import-model-asset.e2e.ts +++ b/tests/e2e/import-model-asset.e2e.ts @@ -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();