From 2f97a2173ddb48f45950767ccf81d2f7711d8ce8 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 3 Apr 2026 00:06:47 +0200 Subject: [PATCH] Add click interaction to local lights and background test --- tests/e2e/local-lights-and-background.e2e.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/e2e/local-lights-and-background.e2e.ts b/tests/e2e/local-lights-and-background.e2e.ts index 969a1b54..aed568ec 100644 --- a/tests/e2e/local-lights-and-background.e2e.ts +++ b/tests/e2e/local-lights-and-background.e2e.ts @@ -39,6 +39,7 @@ test("local lights and background images persist through editor and runner flows await page.getByTestId("outliner-add-button").click(); await page.getByTestId("add-menu-lights").click(); await page.getByTestId("add-menu-point-light").click(); + await page.getByTestId("viewport-panel-topLeft").click({ position: { x: 16, y: 16 }, force: true }); const viewportCanvas = getViewportCanvas(page); await viewportCanvas.hover({ position: { x: 172, y: 116 }, force: true }); await viewportCanvas.click({ position: { x: 172, y: 116 }, force: true }); @@ -49,6 +50,7 @@ test("local lights and background images persist through editor and runner flows await page.getByTestId("outliner-add-button").click(); await page.getByTestId("add-menu-lights").click(); await page.getByTestId("add-menu-spot-light").click(); + await page.getByTestId("viewport-panel-topLeft").click({ position: { x: 16, y: 16 }, force: true }); await viewportCanvas.hover({ position: { x: 240, y: 132 }, force: true }); await viewportCanvas.click({ position: { x: 240, y: 132 }, force: true }); await expect(page.getByTestId("spot-light-angle")).toHaveValue("35");