From cc0f2019ebd30e91fe416db0eb763734c05ab9b7 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 3 Apr 2026 00:09:33 +0200 Subject: [PATCH] Change click event to dispatchEvent in import-model-asset.e2e.ts --- tests/e2e/import-model-asset.e2e.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/import-model-asset.e2e.ts b/tests/e2e/import-model-asset.e2e.ts index 6a03b04c..86457e2b 100644 --- a/tests/e2e/import-model-asset.e2e.ts +++ b/tests/e2e/import-model-asset.e2e.ts @@ -49,7 +49,7 @@ test("imports a model asset, places an instance, and survives reload", async ({ await setViewportPlacementPreview(page, "topLeft", { kind: "model-instance", assetId: importedModelAsset.id }, { x: 92, y: 0, z: -76 }); await expect(page.getByTestId("viewport-snap-preview-topLeft")).toBeVisible(); - await page.getByTestId("viewport-fallback-place-topLeft").click(); + await page.getByTestId("viewport-fallback-place-topLeft").dispatchEvent("click"); await expect(page.getByTestId("outliner-model-instance-list").getByRole("button")).toHaveCount(2); const snapshot = await getEditorStoreSnapshot(page); const selectedModelInstanceId = snapshot.selection.kind === "modelInstances" ? snapshot.selection.ids?.[0] ?? null : null;