Files
kandev/apps/web/e2e/tests/office/activity-page.spec.ts
T

17 lines
597 B
TypeScript

import { test, expect } from "../../fixtures/office-fixture";
import { officeTopbarTitle } from "../../helpers/office-topbar";
test.describe("Activity page", () => {
test("activity page renders", async ({ testPage, officeSeed: _ }) => {
await testPage.goto("/office/workspace/activity");
await expect(officeTopbarTitle(testPage)).toHaveText(/Activity/i, {
timeout: 10_000,
});
});
test("activity API returns data", async ({ officeApi, officeSeed }) => {
const result = await officeApi.listActivity(officeSeed.workspaceId);
expect(result).toBeDefined();
});
});