Add tests for material button visibility and interaction

This commit is contained in:
2026-03-31 05:35:14 +02:00
parent 3d267cff0a
commit 9030ccba29

View File

@@ -19,6 +19,13 @@ test("app boots and shows the viewport shell", async ({ page }) => {
await expect(page.getByTestId("toolbar-scene-name")).toHaveValue("Untitled Scene");
await expect(page.getByTestId("viewport-shell")).toBeVisible();
await expect(page.getByTestId("enter-run-mode")).toBeVisible();
await expect(page.getByTestId("material-button-starter-amber-grid")).toBeVisible();
await page.getByRole("button", { name: "Materials" }).click();
await expect(page.getByTestId("material-button-starter-amber-grid")).toHaveCount(0);
await page.getByRole("button", { name: "Materials" }).click();
await expect(page.getByTestId("material-button-starter-amber-grid")).toBeVisible();
expect(pageErrors).toEqual([]);
expect(consoleErrors).toEqual([]);