skillhub/web/e2e/settings-pages.spec.ts
huishi3 83490d75ac test(e2e): remove duplicate specs covered by new comprehensive suites
- Delete namespace-members-data.spec.ts (TC_MEMBER_001 in
  namespace-members-management.spec.ts is equivalent and the new suite
  also covers add-member dialog and batch import).
- Delete namespace-reviews-data.spec.ts (TC_NS_REVIEW_001 in
  namespace-reviews-management.spec.ts is equivalent and the new suite
  also covers status tabs, tab switching, and sort order).
- Trim settings-pages.spec.ts to only the reset-password navigation test;
  profile/security/notification page coverage now lives in the dedicated
  *-settings.spec.ts files with deeper interaction tests.

Net change: 5 fewer test cases, ~1.5 min saved per CI run.
2026-05-08 08:04:10 -07:00

17 lines
687 B
TypeScript

import { expect, test } from '@playwright/test'
import { setEnglishLocale } from './helpers/auth-fixtures'
import { registerSession } from './helpers/session'
test.describe('Settings Pages (Real API)', () => {
test.beforeEach(async ({ page }, testInfo) => {
await setEnglishLocale(page)
await registerSession(page, testInfo)
})
test('navigates to reset-password page from profile settings', async ({ page }) => {
await page.goto('/settings/profile')
await page.getByRole('button', { name: 'Reset Password' }).click()
await expect(page).toHaveURL('/reset-password')
await expect(page.getByRole('heading', { name: 'Reset Password' })).toBeVisible()
})
})