Files
gridpilot.gg/tests/e2e/dashboard/dashboard-error-states.spec.ts
Marc Mintel 9894c4a841
Some checks failed
CI / lint-typecheck (pull_request) Failing after 13s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
code quality
2026-01-27 16:30:03 +01:00

22 lines
733 B
TypeScript

/**
* BDD E2E Test: Dashboard Error States and Edge Cases
*
* Tests error handling and edge cases for the dashboard:
* - Dashboard access without authentication
* - Dashboard access with network errors
* - Dashboard access with API errors
* - Dashboard access with no data available
*
* Focus: Final user outcomes - what the driver experiences in error scenarios
*/
import { expect, test } from '@playwright/test';
test.describe('Dashboard Error States', () => {
test('Unauthenticated user is redirected to login when accessing dashboard', async ({ page }) => {
await page.goto('/dashboard');
await page.waitForURL('**/auth/login**');
await expect(page.getByTestId('login-form')).toBeVisible();
});
});