mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-08 03:07:51 +00:00
- 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.
17 lines
687 B
TypeScript
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()
|
|
})
|
|
})
|