From 8a0f97477fd3236b68fd8e04b2bac6d1e0649d52 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 3 Apr 2026 00:10:09 +0200 Subject: [PATCH] Update test to use dispatchEvent for click --- tests/e2e/local-lights-and-background.e2e.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/local-lights-and-background.e2e.ts b/tests/e2e/local-lights-and-background.e2e.ts index bb3896a7..a53894d7 100644 --- a/tests/e2e/local-lights-and-background.e2e.ts +++ b/tests/e2e/local-lights-and-background.e2e.ts @@ -41,7 +41,7 @@ test("local lights and background images persist through editor and runner flows await page.getByTestId("add-menu-point-light").click(); await setViewportPlacementPreview(page, "topLeft", { kind: "entity", entityKind: "pointLight", audioAssetId: null }, { x: 12, y: 3, z: -4 }); 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("point-light-distance")).toHaveValue("8"); await page.getByTestId("point-light-distance").fill("12"); await page.getByTestId("point-light-distance").press("Tab"); @@ -51,7 +51,7 @@ test("local lights and background images persist through editor and runner flows await page.getByTestId("add-menu-spot-light").click(); await setViewportPlacementPreview(page, "topLeft", { kind: "entity", entityKind: "spotLight", audioAssetId: null }, { x: -10, y: 4, 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"); await expect(page.getByTestId("spot-light-angle")).toHaveValue("35"); await page.getByTestId("spot-light-angle").fill("48"); await page.getByTestId("spot-light-angle").press("Tab");