132bf61ee1
Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
22 lines
927 B
TypeScript
22 lines
927 B
TypeScript
import { test, expect } from "../../fixtures/office-fixture";
|
|
import { officeTopbarTitle } from "../../helpers/office-topbar";
|
|
|
|
test.describe("Projects", () => {
|
|
test("projects page renders", async ({ testPage, officeSeed: _ }) => {
|
|
await testPage.goto("/office/projects");
|
|
await expect(officeTopbarTitle(testPage)).toHaveText(/Projects/i, {
|
|
timeout: 10_000,
|
|
});
|
|
});
|
|
|
|
// Onboarding intentionally no longer seeds a default project — per
|
|
// `internal/office/onboarding/service.go`, projects are created on
|
|
// demand by the user or the coordinator agent. The fixture's
|
|
// `officeSeed.projectId` is therefore empty by design; this test
|
|
// is skipped until that contract changes again.
|
|
test.skip("onboarding creates a default project", async ({ officeApi: _, officeSeed }) => {
|
|
expect(officeSeed.projectId).toBeDefined();
|
|
expect(officeSeed.projectId.length).toBeGreaterThan(0);
|
|
});
|
|
});
|