- 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
27 lines
1.3 KiB
JavaScript
27 lines
1.3 KiB
JavaScript
/**
|
|
* TC-CATALOG-002 · 条件不满足时不能办理产品目录
|
|
* REQ-008 [FL-4.1] 反向/因果图 P0
|
|
*
|
|
* 前置:1. 服务平台的【目录管理】可以正常打开;2. 已准备无权限账号或错误数据
|
|
* 步骤:1. 打开服务平台的【目录管理】;2. 使用无权限账号或错误数据办理产品目录;3. 点击提交,查看提示和数据
|
|
* 预期:系统不允许办理产品目录,并说明原因。原有数据和状态不变。
|
|
*/
|
|
export const meta = {
|
|
tc: "TC-CATALOG-002",
|
|
req: "REQ-008",
|
|
title: "条件不满足时不能办理产品目录",
|
|
type: "反向/因果图",
|
|
priority: "P0",
|
|
route: "/tds/products",
|
|
needs: ['be']
|
|
}
|
|
|
|
export async function run(t) {
|
|
await t.step('打开服务平台的【目录管理】并提交错误数据', async () => {
|
|
await t.login(); await t.goto('/tds/products'); await t.pickSpace(); await t.openCreate(); await t.fillForm({产品标识:t.uid('INVALID-CAT'),产品名称:'错误目录产品'}); await t.save(); await t.expectReject('不能为空'); await t.cancelDrawer()
|
|
})
|
|
await t.step('核对原有数据和状态不变', async () => {
|
|
await t.expectNoRow(t.uid('INVALID-CAT')); t.assert((await t.apiList('/api/ssw/tds/DataProduct',{keyword:t.uid('INVALID-CAT')})).length===0,'错误产品目录未产生数据')
|
|
}); t.expectConsoleClean()
|
|
}
|