Files
ssw-mvp/docs/e2e/cases/TC-CONTRACT-022.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

16 lines
702 B
JavaScript

/**
* TC-CONTRACT-022 · 查看合约履行的办理结果
* REQ-012 [FL-5.2] 反向/错误推测 P1
*/
export const meta = { tc: 'TC-CONTRACT-022', req: 'REQ-012', title: '查看合约履行的办理结果', type: '反向/错误推测', priority: 'P1', route: '/tds/contracts', needs: ['fe','be'] }
export async function run(t) {
await t.login()
await t.goto('/tds/contracts')
await t.pickSpace()
const list = await t.apiList('/api/ssw/tds/Contract')
const changed = list.find((c) => c.version && c.version > 1) || list[0]
await t.search(changed.contractCode)
await t.expectRow(changed.contractCode)
// 列表里能看到「版本」列
await t.shot('TC-CONTRACT-022-version')
}