2026-07-16 06:19:58 -04:00
|
|
|
import { test, expect } from '@playwright/test';
|
|
|
|
|
import { login } from './helpers/auth';
|
|
|
|
|
|
|
|
|
|
test.describe('Dashboard', () => {
|
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
|
|
|
await login(page);
|
|
|
|
|
await page.goto('/dashboard');
|
|
|
|
|
await expect(page.getByRole('heading', { name: /dashboard/i })).toBeVisible();
|
|
|
|
|
});
|
|
|
|
|
|
2026-07-29 08:03:28 -04:00
|
|
|
test('should display dashboard with widgets', async ({ page }) => {
|
|
|
|
|
// Dashboard should show at least one widget area
|
|
|
|
|
await expect(page.locator('[class*="grid"]').first()).toBeVisible();
|
2026-07-16 06:19:58 -04:00
|
|
|
});
|
|
|
|
|
|
2026-07-29 08:03:28 -04:00
|
|
|
test('should show today tasks widget', async ({ page }) => {
|
|
|
|
|
await expect(page.getByText(/today/i).first()).toBeVisible();
|
2026-07-16 06:19:58 -04:00
|
|
|
});
|
|
|
|
|
|
2026-07-29 08:03:28 -04:00
|
|
|
test('should show activity feed widget', async ({ page }) => {
|
|
|
|
|
await expect(page.getByText(/activity/i).first()).toBeVisible();
|
2026-07-16 06:19:58 -04:00
|
|
|
});
|
|
|
|
|
});
|