Files
Nexus/frontend/e2e/pages/credentials.spec.mjs
T
Nexus Agent 0f6f91e61a fix(api): align alerts/commands contracts and ship full-site test suite.
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.
2026-06-09 02:13:13 +08:00

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 })
})