Update sound emitter tests and add audio asset support in scene document serialization

This commit is contained in:
2026-04-02 19:47:35 +02:00
parent 42b25f3d42
commit f025f50e82
2 changed files with 90 additions and 8 deletions

View File

@@ -21,10 +21,11 @@ test("user can place and select typed entities from the entity foundation workfl
await page.reload();
await page.getByTestId("add-entity-soundEmitter").click();
await expect(page.getByTestId("sound-emitter-radius")).toHaveValue("6");
await expect(page.getByTestId("sound-emitter-ref-distance")).toHaveValue("6");
await expect(page.getByTestId("sound-emitter-max-distance")).toHaveValue("24");
await page.getByTestId("sound-emitter-radius").fill("9");
await page.getByTestId("sound-emitter-radius").press("Tab");
await page.getByTestId("sound-emitter-ref-distance").fill("9");
await page.getByTestId("sound-emitter-ref-distance").press("Tab");
await page.getByTestId("add-entity-interactable").click();
await expect(page.getByTestId("interactable-prompt")).toHaveValue("Use");
@@ -35,7 +36,7 @@ test("user can place and select typed entities from the entity foundation workfl
.first()
.click();
await expect(page.getByTestId("sound-emitter-radius")).toHaveValue("9");
await expect(page.getByTestId("sound-emitter-ref-distance")).toHaveValue("9");
await expect(page.getByTestId("interactable-prompt")).toHaveCount(0);
expect(pageErrors).toEqual([]);