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.
19 lines
660 B
JavaScript
19 lines
660 B
JavaScript
/** E2E-AUD-002 — audit table Beijing time display (MCP-AUD-001沉淀) */
|
|
import { test, expect } from '../fixtures.mjs'
|
|
import { ISO_UTC_RE, login, nav } from '../helpers.mjs'
|
|
|
|
test('E2E-AUD-002 audit times not bare ISO UTC', async ({ page }) => {
|
|
await login(page)
|
|
await nav(page, '/audit')
|
|
await expect(page.getByText(/审计/).first()).toBeVisible({ timeout: 20000 })
|
|
|
|
const cells = page.locator('table tbody td')
|
|
const count = await cells.count()
|
|
for (let i = 0; i < Math.min(count, 20); i++) {
|
|
const text = await cells.nth(i).innerText()
|
|
if (/\d{4}-\d{2}-\d{2}/.test(text)) {
|
|
expect(text).not.toMatch(ISO_UTC_RE)
|
|
}
|
|
}
|
|
})
|