From e2ce5eab79ab6816c6adc63b20416e8386638895 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 3 Apr 2026 00:09:43 +0200 Subject: [PATCH] Change click event to dispatchEvent in entities-foundation.e2e.ts --- tests/e2e/entities-foundation.e2e.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/entities-foundation.e2e.ts b/tests/e2e/entities-foundation.e2e.ts index 5a40fb0c..f7a8a82d 100644 --- a/tests/e2e/entities-foundation.e2e.ts +++ b/tests/e2e/entities-foundation.e2e.ts @@ -32,7 +32,7 @@ test("user can place and select typed entities from the entity foundation workfl { x: 4, y: 1, z: -6 } ); 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"); const soundEmitterSnapshot = await getEditorStoreSnapshot(page); const selectedSoundEmitterId = soundEmitterSnapshot.selection.kind === "entities" ? soundEmitterSnapshot.selection.ids?.[0] ?? null : null; @@ -71,7 +71,7 @@ test("user can place and select typed entities from the entity foundation workfl { x: -8, y: 1, z: 12 } ); 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("interactable-prompt")).toHaveValue("Use"); await page @@ -121,7 +121,7 @@ test("shift+a opens the add menu at the cursor", async ({ page }) => { { kind: "entity", entityKind: "pointLight", audioAssetId: null }, { x: 12, y: 3, z: -4 } ); - await page.getByTestId("viewport-fallback-place-topLeft").click(); + await page.getByTestId("viewport-fallback-place-topLeft").dispatchEvent("click"); await expect(page.getByTestId("point-light-intensity")).toHaveValue("1.25"); expect(pageErrors).toEqual([]);