规范:统一自有源码中文注释和中文提交约定

This commit is contained in:
cieanyau committed 2026-11-07 04:49:51 +08:00
1 parent bdb9b00b6e
commit 83b7484558
17 files changed
+39 -36

No files matched your search

+5 -5
View File
@@ -1,9 +1,9 @@
/**
* Failure modes recorded before the fixes:
* - Certification HTML must keep its QR-refresh script, without reading or writing the console parent.
* - Receiving a QR URL is not evidence that an image loaded; pending/broken images must not start login polling.
* - A broken image needs an accessible error and a retry, and a fresh loaded image must still permit normal login.
* All scenarios enter the actual built pages and replace only the external HTTP service or browser clock.
* 修复前记录的失败场景:
* - 实名认证 HTML 应保留二维码刷新脚本,但不能读写控制台父页面。
* - 收到二维码地址不等于图片已加载;图片等待或损坏时不得开始登录轮询。
* - 图片损坏时应提供可访问的错误提示和重试入口;新图片加载成功后仍应允许正常登录。
* 所有场景均进入实际构建的页面,仅替换外部 HTTP 服务或浏览器时钟。
*/
import assert from "node:assert/strict";
import { test } from "node:test";
@@ -1,7 +1,7 @@
/**
* Certification summaries must preserve the API state instead of treating every nonzero status as approval.
* Gap: home and the real-name page were never exercised with the same failed/submitted/review payload.
* Only the external HTTP backend is replaced; login, home tiles, real-name routes and certification forms stay real.
* 认证摘要必须保留接口状态,不能把所有非零状态都视为认证通过。
* 原有回归缺口:首页与实名认证页面此前未使用相同的失败、已提交、审核中响应进行对照验收。
* 仅替换外部 HTTP 后端;登录、首页卡片、实名认证路由与认证表单均使用实际实现。
*/
import assert from "node:assert/strict";
import test from "node:test";
+1 -1
View File
@@ -49,7 +49,7 @@ async function releaseResponse(page, release, path) {
);
release.resolve();
await (await response).finished();
// Absence assertions observe a bounded idle window after the real fetch has completed.
// 真实请求完成后,在有界的空闲观察窗口内断言后续工作未发生。
await page.waitForLoadState("networkidle");
}