Files
paseo/packages/app/e2e/browser/project-status-badge.spec.ts
T
Mohamed BoudraandGitHub 74e4a9f90c Restore browser test routing (#2768)
Move the project status badge Playwright spec into the browser-owned directory so the changes contract passes and the test is collected.
2026-08-01 20:00:32 +02:00

35 lines
1.1 KiB
TypeScript

import { test } from "../support/fixtures";
import {
expandStatusProject,
expectCollapsedProjectStatus,
expectProjectStatusHidden,
expectWorkspaceStatus,
openAndCollapseStatusProject,
seedStatusProject,
startNeedsInputWorkspace,
startWorkingWorkspace,
} from "../helpers/project-status-badge";
test("a collapsed project surfaces its most urgent hidden workspace status", async ({ page }) => {
test.setTimeout(120_000);
const project = await seedStatusProject();
try {
await openAndCollapseStatusProject(page, project);
await expectProjectStatusHidden(page, project);
await startWorkingWorkspace(project);
await expectCollapsedProjectStatus(page, project, "Working");
await startNeedsInputWorkspace(project);
await expectCollapsedProjectStatus(page, project, "Needs input");
await expandStatusProject(page, project);
await expectProjectStatusHidden(page, project);
await expectWorkspaceStatus(page, "Working workspace", "running");
await expectWorkspaceStatus(page, "Needs input workspace", "needs_input");
} finally {
await project.seed.cleanup().catch(() => undefined);
}
});