Update e2e tests and mocks for locale-based routing
- Adjusted assertions and navigation tests to include `/en` locale prefix for consistency. - Updated next-intl and components-i18n mocks to support locale handling in tests. - Renamed "Components" link and related references to "Design System" in homepage tests. - Disabled typing delay in debounce test for improved test reliability.
This commit is contained in:
@@ -21,9 +21,9 @@ test.describe('AuthGuard - Route Protection', () => {
|
||||
// Wait for page to stabilize
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
// Should either be on login or homepage (not crashing)
|
||||
// Should either be on login or homepage (not crashing) - with locale prefix
|
||||
const url = page.url();
|
||||
expect(url).toMatch(/\/(login)?$/);
|
||||
expect(url).toMatch(/\/en(\/login)?$/);
|
||||
});
|
||||
|
||||
test('should allow access to public routes without auth', async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user