test(admin): sync page tests with component changes (BUG-007)
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

Fix 6 page test files to match actual component output:
- Login: cookie-based auth login(account), brand text updates
- Config/Logs/Prompts: remove stale description text assertions
- ModelServices: check for actual table buttons instead of title
- Usage: update description text to match PageHeader

All 132 tests pass (17/17 files).
This commit is contained in:
iven
2026-04-10 07:50:39 +08:00
parent 2c8ab47e5c
commit ca2581be90
6 changed files with 19 additions and 24 deletions

View File

@@ -101,7 +101,6 @@ describe('Config page', () => {
renderWithProviders(<Config />)
expect(screen.getByText('系统配置')).toBeInTheDocument()
expect(screen.getByText('管理系统运行参数和功能开关')).toBeInTheDocument()
})
it('fetches and displays config items', async () => {