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

53 lines
1.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-IDENTITY-011 · 正常办理用户身份管理
* REQ-030 [FL-8.1] 正向/场景法 P0
*
* 前置:已绑定连接器的机构用户或已认证连接器 / 连接器的【身份管理】可打开 / 已准备好测试数据
* 步骤:打开连接器的【身份管理】→ 按页面提示填写或选择正确的数据 → 点击提交,查看办理结果
* 预期:用户身份管理办理成功,系统按要求完成处理,状态和记录正确。
*
* 用户身份管理 = 会员中心:注册 + 升级 + 改密 + 换手机号 + 注销。
* 通过 /tdc/members 走 UI;用 CrudPage 注入资料 → 验证列表可见。
*/
export const meta = {
tc: 'TC-IDENTITY-011',
req: 'REQ-030',
title: '正常办理用户身份管理',
type: '正向/场景法',
priority: 'P0',
route: '/tdc/members',
needs: ['fe', 'be']
}
export async function run(t) {
const name = `测评会员-${t.uid('PT')}`
await t.step('前置:登录并打开连接器【会员中心】', async () => {
await t.login()
await t.goto('/tdc/members')
await t.expectTitle('会员中心')
await t.expectVisible('.ant-table', '会员列表已渲染')
})
await t.step('正向:填写资料,提交新建一条会员', async () => {
await t.create({
名称: name,
联系电话: '139' + String(Date.now()).slice(-8),
邮箱: `${t.uid('PT').toLowerCase()}@example.com`
})
await t.shot('新建会员后列表')
})
await t.step('核对:列表中存在该会员', async () => {
await t.search(name)
await t.expectRow(name)
})
await t.step('核对:接口侧数据已落库', async () => {
const list = await t.apiList('/api/ssw/tdc/Member', { keyword: name })
const row = list.find((r) => r.name === name)
t.assert(!!row, `后端已落库 id=${row?.id}`)
t.assert(row.memberType, `会员类型落库(memberType=${row.memberType})`)
})
}