test: open drive settings for volume and pause in browser specs

This commit is contained in:
2026-10-10 23:57:15 +03:00
parent 6ac5e6f02e
commit 014d1c12dd
5 changed files with 23 additions and 10 deletions

View File

@@ -151,6 +151,7 @@ test("provides native motion and quality controls with visible state", async ({
await expect(page.getByRole("status")).toHaveCount(0);
await page.keyboard.press("Escape");
await page.getByRole("button", { name: "Play soundtrack" }).click();
await page.getByRole("button", { name: "Drive settings" }).click();
await expect(
page.getByRole("button", { name: "Pause motion" }),
).toBeVisible();
@@ -161,6 +162,7 @@ test("provides native motion and quality controls with visible state", async ({
.getAttribute("data-scene-generation");
await page.getByRole("button", { name: "Pause motion" }).click();
await page.keyboard.press("Escape");
await expect(
page.getByRole("button", { name: "Resume motion" }),
).toBeVisible();
@@ -174,9 +176,11 @@ test("provides native motion and quality controls with visible state", async ({
);
await page.getByRole("button", { name: "Resume motion" }).click();
await page.getByRole("button", { name: "Drive settings" }).click();
await expect(
page.getByRole("button", { name: "Pause motion" }),
).toBeVisible();
await page.keyboard.press("Escape");
await expect(canvas).toHaveCount(1);
await expect(page.locator(".journey-world")).toHaveAttribute(
"data-scene-generation",