platform-codebase/@packages/@testing/e2e-auth/src/index.ts
Lilith abba006dbb chore(e2e-auth): 🔧 Update test dependencies and configurations for auth flow validation
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-01-29 23:01:19 -08:00

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';