Remove MSW handlers and update demo credentials for improved standardization

- Deleted `admin.ts`, `auth.ts`, and `users.ts` MSW handler files to streamline demo mode setup.
- Updated demo credentials logic in `DemoCredentialsModal` and `DemoModeBanner` for stronger password requirements (≥12 characters).
- Refined documentation in `CLAUDE.md` to align with new credential standards and auto-generated MSW workflows.
This commit is contained in:
Felipe Cardoso
2025-11-24 19:20:28 +01:00
parent 372af25aaa
commit 5b0ae54365
25 changed files with 1499 additions and 1167 deletions

View File

@@ -105,7 +105,7 @@ describe('DemoTourPage', () => {
// Check for credentials
const authCards = screen.getAllByText(/demo@example\.com/i);
expect(authCards.length).toBeGreaterThan(0);
const demo123 = screen.getAllByText(/Demo123!/i);
const demo123 = screen.getAllByText(/DemoPass1234!/i);
expect(demo123.length).toBeGreaterThan(0);
});
@@ -130,7 +130,7 @@ describe('DemoTourPage', () => {
// Check for admin credentials
expect(screen.getByText(/admin@example\.com/i)).toBeInTheDocument();
expect(screen.getByText(/Admin123!/i)).toBeInTheDocument();
expect(screen.getByText(/AdminPass1234!/i)).toBeInTheDocument();
});
it('shows Login Required badge for authenticated demos', () => {