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

30 lines
1.1 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-COMPAT-004 · 主流浏览器显示一致
* Q-COMPAT 兼容性 · 正向 · P1
* 预期:在主流浏览器下界面显示一致,操作无差异
*/
export const meta = {
tc: 'TC-COMPAT-004',
req: 'Q-COMPAT',
title: '主流浏览器显示一致',
type: '正向',
priority: 'P1',
needs: ['fe']
}
export async function run(t) {
// 本 runner 本身就强制走 channel:chrome(Google Chrome),这条用例必过
await t.login()
const sample = ['/tds/spaces', '/tds/connectors', '/tds/contracts']
for (const r of sample) {
await t.goto(r)
await t.expectVisible('.crud-page', `${r} 在 Chrome 下布局正常`)
}
t.shot('TC-COMPAT-004-chrome')
t.manual([
'人工核对其他主流浏览器:',
'1) 用 Microsoft Edge / Safari / Firefox 打开 http://localhost:5173,登录 admin/123456;',
'2) 访问 /tds/connectors / /tds/contracts / /tdc/products 三页,截图对比;',
'3) 断言无错位、无组件库样式丢失(ant-design-vue 在 Chromium 系表现一致,Safari/Firefox 重点关注 grid 表格列宽与提示 toast)。'
].join('\n'))
}