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

50 lines
2.4 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-009 · 供方信息完整可达
* REQ-Q-PROD 质量特性-产品说明 正向 P1
*
* 前置:1. 系统已部署并正常运行 2. 网络及测试环境可用
* 步骤:1. 查看供方/零售商名称、邮政地址、网络地址和联系方式
* 预期:1. 提供供方信息,便于用户满意地使用该产品
*
* 浏览器自动化无法直接验证"邮政地址、电话"等离线信息,但可对"网络地址"(门户登录页 / API)的可达性做实测。
*/
export const meta = {
tc: 'TC-PROD-009',
req: 'Q-PROD',
title: '供方信息完整可达',
type: '正向',
priority: 'P1',
route: '',
needs: ['fe', 'be']
}
export async function run(t) {
await t.step('核对供方"网络地址":前端门户登录页可达', async () => {
// 不走登录流程,仅 GET 一次登录页确认门户(供方对外公开的网络入口)能打开
const r = await fetch(`${process.env.SSW_FE ?? 'http://localhost:5173'}/login`)
t.assert(r.status === 200, `前端门户登录页 HTTP 200(实际 ${r.status})`)
})
await t.step('核对供方"API 网络地址":后端 OAuth 登录入口可达', async () => {
const r = await fetch(`${process.env.SSW_BE ?? 'http://localhost:30000'}/api/oauth/Login`, {
method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
body: 'account=&password=&grant_type=password'
})
t.assert(r.status === 200 || r.status === 400, `OAuth 登录接口可达(HTTP ${r.status})`)
})
await t.step('核对供方"联系方式":登录页底部或帮助菜单应可访问', async () => {
await t.goto('/login')
// 登录页底部如有"技术支持"链接或版权备注,可访问;此处只验页面无 5xx
const body = await t.page.content()
t.assert(body.length > 0, '登录页源码可读取(含供方信息展示位)')
})
t.manual(`人工核对"供方信息完整可达":
1. docs/PROJECT.md 顶部是否列明供方/集成方公司名称、邮政地址、网络地址(域名/邮箱)、技术支持联系方式;
2. docs/项目总览.md / docs/尚数网可信数据空间-项目总览.md(如有)是否给出供方联系方式;
3. 前端门户登录页底部(页面 Footer)是否展示版权年份 + 技术支持链接;
4. /api/ssw/sswflow/About 或类似接口(如有)是否给出供方版权说明。`)
}