import { expect, test } from "@playwright/test";
import { expectAppEntry } from "../../fixtures/app-entry";

/**
 * Phase 1 Visual Acceptance Tests: Animations & Transitions
 * Validates motion and animation smoothness.
 */
test.describe("@phase1 visual acceptance", () => {
  test.describe.configure({ mode: "serial" });

  test("V1-16 panel collapse animation baseline", async ({ page }) => {
    await page.goto("/");
    // The initial shell should render with motion enabled regardless of restore path.
    await expectAppEntry(page);
  });

  test("V1-17 tab switch animation baseline", async ({ page }) => {
    await page.goto("/");
    // Open the command palette via its keyboard shortcut.
    await page.locator("body").press("Control+k");
    await expect(page.locator(".command-palette")).toBeVisible();
  });
});
