This commit is contained in:
1 parent
339df89fcf
commit
651c36367f
33 files changed
+1420
-40
No files matched your search
+2
-1
@@ -1,6 +1,7 @@
|
||||
# 浏览器端到端验收
|
||||
|
||||
先在项目根目录执行 `npm ci` 安装锁定依赖,执行 `npm run build`,再执行 `npm test`。
|
||||
先在项目根目录执行 `npm ci` 安装锁定依赖,执行 `npm run check`、`npm run lint`、
|
||||
`npm run format:check` 和 `npm run build`,再执行 `npm test`。
|
||||
测试使用 Node 自带的 `node:test`。浏览器场景直接操作实际构建后的页面,不替换项目内部模块;
|
||||
规则适配与随机密码另有公开模块入口的隔离失败模式测试,不能代替浏览器验收。
|
||||
|
||||
|
||||
@@ -260,7 +260,7 @@ export async function scenario(t, options, exercise) {
|
||||
const screenshot = `${t.name.replace(/[^a-z0-9]+/gi, "-").toLowerCase()}.png`;
|
||||
let failure;
|
||||
let observed;
|
||||
let requests = [];
|
||||
let requests;
|
||||
try {
|
||||
observed = await exercise(page);
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user