From 9ee25f6db661a0971c826486ea00178c3aa66c49 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 2 Apr 2026 20:20:15 +0200 Subject: [PATCH] Add autoplay and loop options for sound emitter in e2e tests --- tests/e2e/entities-foundation.e2e.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/e2e/entities-foundation.e2e.ts b/tests/e2e/entities-foundation.e2e.ts index c5dece0d..66af6014 100644 --- a/tests/e2e/entities-foundation.e2e.ts +++ b/tests/e2e/entities-foundation.e2e.ts @@ -27,6 +27,11 @@ test("user can place and select typed entities from the entity foundation workfl await page.getByTestId("sound-emitter-ref-distance").fill("9"); await page.getByTestId("sound-emitter-ref-distance").press("Tab"); + await page.getByTestId("sound-emitter-autoplay").click(); + await page.getByTestId("sound-emitter-loop").click(); + await expect(page.getByTestId("sound-emitter-autoplay")).toBeChecked(); + await expect(page.getByTestId("sound-emitter-loop")).toBeChecked(); + await page.getByTestId("add-entity-interactable").click(); await expect(page.getByTestId("interactable-prompt")).toHaveValue("Use"); @@ -37,6 +42,8 @@ test("user can place and select typed entities from the entity foundation workfl .click(); await expect(page.getByTestId("sound-emitter-ref-distance")).toHaveValue("9"); + await expect(page.getByTestId("sound-emitter-autoplay")).toBeChecked(); + await expect(page.getByTestId("sound-emitter-loop")).toBeChecked(); await expect(page.getByTestId("interactable-prompt")).toHaveCount(0); expect(pageErrors).toEqual([]);