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.
This commit is contained in:
Mohamed Boudra
2026-08-01 20:00:32 +02:00
committed by GitHub
parent c8de1b165f
commit 74e4a9f90c
@@ -0,0 +1,34 @@
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);
}
});