0f6f91e61a
Restore alert history filters and stats fields, paginate command/session logs for the SPA, show script labels on schedules, and land integration/E2E coverage with rebuilt web assets.
16 lines
779 B
JavaScript
16 lines
779 B
JavaScript
/** E2E-CRED-001 — credentials dialog required fields (MCP-CRED-001沉淀) */
|
|
import { test, expect } from '../fixtures.mjs'
|
|
import { login, nav } from '../helpers.mjs'
|
|
|
|
test('E2E-CRED-001 password preset form validation', async ({ page }) => {
|
|
await login(page)
|
|
await nav(page, '/servers')
|
|
await page.getByRole('button', { name: '凭据' }).click()
|
|
const dialog = page.getByRole('dialog')
|
|
await expect(dialog.getByText('凭据管理')).toBeVisible({ timeout: 20000 })
|
|
await dialog.getByRole('button', { name: '添加', exact: true }).click()
|
|
await expect(dialog.getByText('新建密码预设')).toBeVisible()
|
|
await dialog.getByRole('button', { name: '保存' }).click()
|
|
await expect(page.getByText('请填写预设名称')).toBeVisible({ timeout: 5000 })
|
|
})
|