Rebuild and expand E2E tests for Settings flows

- Updated Playwright config to enable 8 workers locally while maintaining single worker on CI.
- Rebuilt Settings Navigation E2E tests to verify page transitions and default redirects.
- Reintroduced Password Change E2E tests to validate form display and interactions.
- Expanded Profile Settings E2E tests to include email read-only verification.
- Marked Sessions Management E2E tests as skipped, pending route implementation confirmation.
This commit is contained in:
Felipe Cardoso
2025-11-05 22:57:05 +01:00
parent df8ef98857
commit e64b0e8085
5 changed files with 149 additions and 41 deletions

View File

@@ -34,4 +34,16 @@ test.describe('Profile Settings', () => {
await expect(page.getByLabel(/last name/i)).toHaveValue(MOCK_USER.last_name);
await expect(page.getByLabel(/email/i)).toHaveValue(MOCK_USER.email);
});
test('should show email as read-only', async ({ page }) => {
// Wait for form to load
const emailInput = page.getByLabel(/email/i);
await emailInput.waitFor({ state: 'visible', timeout: 10000 });
// Verify email field is disabled or read-only
const isDisabled = await emailInput.isDisabled();
const isReadOnly = await emailInput.getAttribute('readonly');
expect(isDisabled || isReadOnly !== null).toBeTruthy();
});
});