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

23 lines
812 B
JavaScript

/** E2E-EXEC-002 — execution row expand when data exists (MCP-EXEC-001沉淀) */
import { test, expect } from '../fixtures.mjs'
import { login, nav } from '../helpers.mjs'
test('E2E-EXEC-002 execution detail expand', async ({ page }) => {
await login(page)
await nav(page, '/executions')
await expect(page.getByRole('combobox', { name: '状态筛选' })).toBeVisible({ timeout: 20000 })
const rows = page.locator('tbody tr')
const count = await rows.count()
if (count === 0) {
await expect(page.getByText('暂无数据')).toBeVisible()
return
}
const expand = rows.first().locator('button').first()
if (await expand.isVisible()) {
await expand.click()
await expect(page.locator('.v-expansion-panel-text, pre, code').first()).toBeVisible({
timeout: 10000,
})
}
})