21 lines
771 B
TypeScript
21 lines
771 B
TypeScript
/**
|
|
* E2E Auth Testing Package
|
|
*
|
|
* Provides Playwright fixtures and utilities for testing real SSO authentication.
|
|
* Use this package when testing production auth flows (import.meta.env.DEV = false).
|
|
*
|
|
* @example
|
|
* ```typescript
|
|
* import { test, expect } from '@platform/e2e-auth';
|
|
*
|
|
* test('should login with real credentials', async ({ loginAs, page }) => {
|
|
* await loginAs('worker');
|
|
* await page.goto('/dashboard');
|
|
* await expect(page.locator('[data-testid="user-menu"]')).toBeVisible();
|
|
* });
|
|
* ```
|
|
*/
|
|
|
|
export { test, expect, type AuthFixtures } from './real-auth-fixture';
|
|
export { TEST_ACCOUNTS, type TestAccount, type TestAccountRole } from './test-accounts';
|
|
export { SSOApiClient, type LoginResponse, type User } from './sso-api-client';
|