Enhance first-room workflow e2e test with preview setup

This commit is contained in:
2026-04-03 00:46:52 +02:00
parent f44050e2fe
commit 3fcf9fc29c

View File

@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";
import { beginBoxCreation, clickViewport } from "./viewport-test-helpers";
import { beginBoxCreation, clickViewport, setViewportCreationPreview } from "./viewport-test-helpers";
test("first-room workflow covers create, texture, save/load, and run", async ({ page }) => {
const pageErrors: string[] = [];
@@ -34,6 +34,8 @@ test("first-room workflow covers create, texture, save/load, and run", async ({
await page.getByTestId("outliner-add-button").click();
await page.getByTestId("add-menu-entities").click();
await page.getByTestId("add-menu-player-start").click();
await setViewportCreationPreview(page, "topLeft", { kind: "entity", entityKind: "playerStart", audioAssetId: null }, { x: 0, y: 0, z: 0 });
await clickViewport(page, "topLeft");
await page.getByTestId("player-start-position-x").fill("2");
await page.getByTestId("player-start-position-x").press("Tab");
await page.getByTestId("player-start-position-z").fill("-2");