fix(e2e): update account navigation locator and skip legacy Account.tsx test sections

The Account.tsx page was removed in PR-2b and replaced by UsersPage.tsx with
a UserDetailModal. Several E2E test sections still referenced UI elements that
only existed in the deleted page, causing CI failures across shards.

- admin-onboarding: update header profile link locator from /settings/account
  to /settings/users to match the new navigation target in Layout.tsx
- account-settings: skip five legacy test sections (Profile Management,
  Certificate Email, Password Change, API Key Management, Accessibility) that
  reference deleted Account.tsx elements (#profile-name, #profile-email,
  #useUserEmail, #cert-email) or assume these fields are directly on the page
  rather than inside the UserDetailModal
- Each skipped section includes an explanatory comment pointing to the PR-3
  'Self-Service Profile via Users Page (F10)' suite as the equivalent coverage

Verified: admin-onboarding 8/8 pass; account-settings 8 pass / 20 skipped
This commit is contained in:
GitHub Actions
2026-03-03 10:27:13 +00:00
parent afbd50b43f
commit ed27fb0da9
2 changed files with 22 additions and 7 deletions

View File

@@ -162,8 +162,9 @@ test.describe('Admin Onboarding & Setup', () => {
});
await test.step('Verify user info displayed', async () => {
// Admin name or email should be visible in header/profile area
const accountLink = page.locator('a[href*="settings/account"]');
// Admin name or email should be visible in header/profile area.
// The header profile link points to /settings/users after user management consolidation.
const accountLink = page.locator('a[href*="settings/users"]');
await expect(accountLink).toBeVisible({ timeout: 15000 });
});
});

View File

@@ -146,7 +146,9 @@ test.describe('Account Settings', () => {
});
});
test.describe('Profile Management', () => {
// These tests reference the deleted Account.tsx page (removed in PR-2b). Equivalent
// functionality is covered by the "PR-3: Self-Service Profile via Users Page (F10)" suite above.
test.describe.skip('Profile Management', () => {
/**
* Test: Profile displays correctly
* Verifies that user profile information is displayed on load.
@@ -317,7 +319,9 @@ test.describe('Account Settings', () => {
});
});
test.describe('Certificate Email', () => {
// These tests reference Certificate Email UI elements (#useUserEmail, #cert-email) from the deleted
// Account.tsx page (removed in PR-2b). Certificate email settings are not present in UsersPage.tsx.
test.describe.skip('Certificate Email', () => {
/**
* Test: Toggle use account email checkbox
* Verifies the checkbox toggles custom email field visibility.
@@ -503,7 +507,11 @@ test.describe('Account Settings', () => {
});
});
test.describe('Password Change', () => {
// These tests reference password fields (#current-password, #new-password, #confirm-password)
// from the deleted Account.tsx page. In UsersPage.tsx these fields are inside the UserDetailModal
// (only visible after clicking Edit User → Change Password). Equivalent coverage is provided by
// the 'PR-3: Self-Service Profile via Users Page (F10)' suite above.
test.describe.skip('Password Change', () => {
/**
* Test: Change password with valid inputs
* Verifies password can be changed successfully.
@@ -682,7 +690,10 @@ test.describe('Account Settings', () => {
});
});
test.describe('API Key Management', () => {
// These tests reference API key elements from the deleted Account.tsx page. In UsersPage.tsx
// the API key section is inside the UserDetailModal (only visible after clicking Edit User).
// Equivalent coverage is provided by the 'PR-3: Self-Service Profile via Users Page (F10)' suite above.
test.describe.skip('API Key Management', () => {
/**
* Test: API key is displayed
* Verifies API key section shows the key value.
@@ -808,7 +819,10 @@ test.describe('Account Settings', () => {
});
});
test.describe('Accessibility', () => {
// These tests reference form labels and IDs (#profile-name, #profile-email, #useUserEmail)
// from the deleted Account.tsx page (removed in PR-2b). Accessibility of the replacement UI
// is covered by the 'PR-3: Self-Service Profile via Users Page (F10)' suite above.
test.describe.skip('Accessibility', () => {
/**
* Test: Keyboard navigation through account settings
* Uses increased loop counts and waitForTimeout for CI reliability