Files
ssw-mvp/docs/e2e/cases/TC-CONTROL_API-010.mjs
T
admin 3247e9fd15 init: ssw-mvp initial commit
- boot/ (Java/Maven, JNPF 7.0) — 移除旧的 boot/.git,源码直接纳入仓库
- web/ (Vue 3 + Vite + Ant Design Vue, pnpm)
- docs/, scard/, nax/
- refs/INDEX.md + refs/国标/(其余 refs/* 开源子仓库不纳入)
- 已忽略: connector_data/, jweb/, log/, web/{dist,node_modules,.pnpm}, boot/*/target/, .DS_Store, .idea, .vscode
2026-08-05 18:29:12 +08:00

14 lines
762 B
JavaScript

/**
* TC-CONTROL_API-010 · 查询执行过程控制时显示正确结果(接口)
* REQ-014 [FL-7.x] 反向/错误推测 P1
*/
export const meta = { tc: 'TC-CONTROL_API-010', req: 'REQ-014', title: '查询执行过程控制时显示正确结果', type: '反向/错误推测', priority: 'P1', needs: ['be'] }
export async function run(t) {
await t.login()
// 关键字 + 过滤组合查询
const list = await t.apiList('/api/ssw/tds/PolicyConflict/Check', { keyword: 'E2E' })
t.assert(Array.isArray(list), `冲突检测接口可分页(${list.length} 条)`)
// 关键字为空时返回所有
const all = await t.apiList('/api/ssw/tds/PolicyConflict/Check', { pageSize: 50 })
t.assert(all.length >= list.length, '关键字过滤生效')
}