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

24 lines
1.4 KiB
JavaScript

/**
* TC-CATALOG-003 · 查看产品目录的办理结果
* REQ-008 [FL-4.1] 正向/边界值 P1
*
* 前置:1. 已完成一次产品目录操作;2. 用户有查看记录的权限
* 步骤:1. 打开服务平台的【目录管理】;2. 查询刚办理的记录;3. 查看详情和相关记录
* 预期:能查到正确的产品目录结果,列表、详情和相关记录一致。
*/
export const meta = {
tc: "TC-CATALOG-003",
req: "REQ-008",
title: "查看产品目录的办理结果",
type: "正向/边界值",
priority: "P1",
route: "/tds/products",
needs: ['be']
}
export async function run(t) {
await t.step('查询已办理的产品目录并查看详情', async () => {
await t.login(); const list=await t.apiList('/api/ssw/tds/DataProduct'); if(!list.length)t.skip('没有已完成产品目录记录'); const x=list[0]; await t.goto('/tds/products'); await t.search(x.productCode); await t.expectRow(x.productCode); await t.openEdit(x.productCode); const code=await t.drawer().locator('.ant-form-item:has(label:text-is("产品标识")) input').inputValue(); const name=await t.drawer().locator('.ant-form-item:has(label:text-is("产品名称")) input').inputValue(); t.assert(code===x.productCode,'产品目录详情标识与列表一致'); t.assert(name===x.name,'产品目录详情名称与列表一致'); await t.cancelDrawer()
}); t.expectConsoleClean()
}