Files
Nexus/frontend/e2e/pages/scripts.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

13 lines
493 B
JavaScript

/** E2E-SCR-001 — scripts library loads (MCP-SCR-001沉淀) */
import { test, expect } from '../fixtures.mjs'
import { login, nav } from '../helpers.mjs'
test('E2E-SCR-001 scripts page toolbar without JS errors', async ({ page }) => {
const errors = []
page.on('pageerror', (e) => errors.push(e.message))
await login(page)
await nav(page, '/scripts')
await expect(page.getByRole('button', { name: '新建脚本' })).toBeVisible({ timeout: 20000 })
expect(errors).toEqual([])
})