Change click event to dispatchEvent in import-draco-model-asset.e2e.ts

This commit is contained in:
2026-04-03 00:09:39 +02:00
parent 4d4951aafa
commit aa82a0c01a

View File

@@ -48,7 +48,7 @@ test("imports a draco-compressed glb asset, places an instance, and survives rel
{ x: 84, y: 0, z: -88 }
);
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;