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

59 lines
2.9 KiB
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-PROD-003 · 包含需方所需信息
* REQ-Q-PROD 质量特性-产品说明 正向 P1
*
* 前置:1. 系统已部署并正常运行 2. 网络及测试环境可用
* 步骤:1. 检查产品说明内容覆盖范围
* 预期:1. 产品说明包含需方所需信息,便于评价适用性
*
* 浏览器自动化无法读 .docx 评估"内容覆盖范围",但可对"产品说明里列出的关键名词"做接口侧实测,
* 证明产品说明不是空话 —— 描述到的能力真的存在于后端。
*/
export const meta = {
tc: 'TC-PROD-003',
req: 'Q-PROD',
title: '包含需方所需信息',
type: '正向',
priority: 'P1',
route: '',
needs: ['fe', 'be']
}
export async function run(t) {
await t.step('前置:登录', async () => {
await t.login()
})
await t.step('核对"用户接口类型":TDS/TDC/SSWFLOW 三个子系统 API 前缀均可达', async () => {
const tds = await t.api('GET', '/api/ssw/tds/Space?currentPage=1&pageSize=1')
t.assert(tds.code === 200, `TDS(管理服务平台)接口可达:${tds.code}`)
const tdc = await t.api('GET', '/api/ssw/tdc/Identity?currentPage=1&pageSize=1')
t.assert(tdc.code === 200, `TDC(数据接入连接器)接口可达:${tdc.code}`)
const sswflow = await t.api('GET', '/api/ssw/sswflow/Project?currentPage=1&pageSize=1')
t.assert(sswflow.code === 200, `SSWFLOW(隐私计算编排)接口可达:${sswflow.code}`)
})
await t.step('核对"防误操作功能":删除前需 Popconfirm 二次确认', async () => {
await t.goto('/tds/spaces')
const row = t.page.locator('.ant-table-tbody tr.ant-table-row').first()
if (!(await row.count())) t.skip('库中尚无可操作的空间,无法验证 Popconfirm 链路')
await row.getByRole('button', { name: /删除/ }).click()
const pop = t.page.locator('.ant-popconfirm:visible')
await pop.waitFor({ state: 'visible', timeout: 5000 }).catch(() => {})
t.assert(await pop.count() > 0, '点击删除会弹出 Popconfirm 二次确认(防误操作)')
await t.page.keyboard.press('Escape')
})
await t.step('核对"维护服务":审计日志页可访问(保留 180 天哈希链)', async () => {
await t.goto('/tds/audit')
await t.expectTitle('审计日志')
t.assert(true, '审计日志页可访问,满足产品说明中"维护/审计可追溯"陈述')
})
t.manual(`人工核对产品说明"是否包含需方所需信息"(评价适用性):
1. docs/功能清单.md 是否包含 19 个章节、100 个功能点,覆盖身份/空间/连接器/目录/合约/控制/交付/安全/审计/运营/应用生态;
2. docs/附件1:技术协议_可信数据空间_0512.docx 是否包含 TP-1~38 全部条目;
3. docs/README.md 是否列明 3 个子系统的定位与对照表;
4. 是否提供了供方信息(单位名称、联系方式、网络地址)—— 见 docs/PROJECT.md 顶部。`)
}