veritas-kanban/e2e/dashboard-widgets.spec.ts
Brad Groux 93b8eec64a
Stabilize Playwright E2E isolation
Merged Playwright E2E isolation fixes for issue #568 after local and CI verification.
2026-06-04 15:21:06 -07:00

26 lines
961 B
TypeScript

import { test, expect } from '@playwright/test';
import { bypassAuth, cleanupRoutes } from './helpers/auth';
test.describe('Board sidebar widgets', () => {
test.beforeEach(async ({ page }) => {
await bypassAuth(page);
});
test.afterEach(async ({ page }) => {
await cleanupRoutes(page);
});
test('renders operational widgets on the board view', async ({ page }) => {
await page.goto('/', { timeout: 15_000 });
await expect(page.getByRole('region', { name: 'To Do' })).toBeVisible({
timeout: 15_000,
});
await expect(page.getByRole('heading', { name: 'Tasks' })).toBeVisible();
await expect(page.getByRole('heading', { name: 'Agent Registry' })).toBeVisible();
await expect(page.getByRole('button', { name: 'Recent Status Changes' })).toBeVisible();
await expect(page.getByRole('heading', { name: 'Audit Trail' })).toBeVisible();
await expect(page.getByText('Monthly Budget')).toBeVisible();
});
});