forked from cardosofelipe/fast-next-template
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:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user