Files
kandev/apps/web/e2e/tests/office/session-work-entry.spec.ts
T
2026-05-16 20:07:57 +01:00

26 lines
1.1 KiB
TypeScript

import { test, expect } from "../../fixtures/office-fixture";
test.describe("Session work entry", () => {
test("issue detail shows comments section", async ({ testPage, apiClient, officeSeed }) => {
const task = await apiClient.createTask(officeSeed.workspaceId, "Session Entry Task", {
workflow_id: officeSeed.workflowId,
});
await testPage.goto(`/office/tasks/${task.id}`);
await expect(testPage.getByRole("heading", { name: "Session Entry Task" })).toBeVisible({
timeout: 10_000,
});
// Should show the comment input area
await expect(testPage.getByPlaceholder("Add a comment")).toBeVisible({ timeout: 5_000 });
});
test("issue detail shows task status", async ({ testPage, apiClient, officeSeed }) => {
const task = await apiClient.createTask(officeSeed.workspaceId, "Properties Task", {
workflow_id: officeSeed.workflowId,
});
await testPage.goto(`/office/tasks/${task.id}`);
await expect(testPage.getByRole("heading", { name: "Properties Task" })).toBeVisible({
timeout: 10_000,
});
});
});