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

18 lines
791 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* TC-CONTRACT-016 · 条件不满足时不能办理合约创建
* REQ-012 [FL-5.2] 反向/等价类 P0
*/
export const meta = { tc: 'TC-CONTRACT-016', req: 'REQ-012', title: '条件不满足时不能办理合约创建', type: '反向/等价类', priority: 'P0', route: '/tds/contracts', needs: ['fe','be'] }
export async function run(t) {
await t.login()
await t.goto('/tds/contracts')
await t.pickSpace()
const before = (await t.apiList('/api/ssw/tds/Contract')).length
await t.openCreate()
await t.fillForm({ 提供方: '缺合约标识' })
await t.save()
await t.expectReject('不能为空')
await t.cancelDrawer()
const after = (await t.apiList('/api/ssw/tds/Contract')).length
t.assert(after === before, `未产生脏数据(${before} → ${after})`)
}