chore(test): 完善审计门禁和后台验收诊断
This commit is contained in:
1 parent
3d7e551838
commit
3a7aed0800
5 files changed
+18
-7
No files matched your search
@@ -442,6 +442,10 @@ async function main() {
|
||||
|
||||
win.on('show', () => record('后台验证禁止显示窗口', false, '出现 show 事件'));
|
||||
win.on('focus', () => record('后台验证禁止抢占焦点', false, '出现 focus 事件'));
|
||||
win.webContents.session.webRequest.onErrorOccurred((details) => {
|
||||
// 仅记录测试浏览器的失败请求;去除查询参数,便于区分换页取消和真实接口故障。
|
||||
console.log(`[ui-network] ${details.error} ${new URL(details.url).pathname}`);
|
||||
});
|
||||
// 把渲染进程的报错转发到控制台(兼容 Electron 新旧事件签名)
|
||||
win.webContents.on('console-message', (...args) => {
|
||||
const first = args[0];
|
||||
|
||||
+1
-2
@@ -4,8 +4,7 @@
|
||||
*
|
||||
* ## 为什么要这个脚本
|
||||
*
|
||||
* 这个仓库里**同一个版本号写在 12 处(10 个文件)**:5 份 package.json、运行时常量、两个 compose 文件、
|
||||
* 官网页面上三处手写的版本号、下载页那一处兜底值。
|
||||
* 同一个版本号需要同步 workspace 包、部署清单与官网兜底值,具体落点以本脚本的目标清单为准。
|
||||
* 手工改必然漏一处,
|
||||
* 而漏掉的那处**不会报错**,只会在某个不常走的分支上表现为"版本号对不上":
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user