Files
kandev/apps/web/e2e/tests/office/projects.spec.ts
T

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);
});
});