document the single UI stack and strengthen resize focus coverage

This commit is contained in:
cieanyau committed 2026-11-07 02:23:19 +08:00
1 parent 5c2342d4c5
commit ec918674ee
5 files changed
+20 -4

No files matched your search

+1
View File
@@ -39,6 +39,7 @@ CHROME_PATH=/absolute/path/to/chrome npm test
- `review-purchase.e2e.test.mjs`:镜像订单未付复用、取消后重建、已付授权延迟不重复收费;级联候选与默认、结算、购物车恢复一致。
- `review-fields.e2e.test.mjs`:常见 ASCII 规则本地拦截、PCRE 专有规则交后端校验;实例随机密码实际提交及安全源失效、无偏采样边界。
- `review-theme.e2e.test.mjs`:认证页三态主题文案、持久化与跟随系统变化。
- `review-ui-foundation.e2e.test.mjs`:OpenVue/Deni 的手机导航焦点约束、Escape/离页关闭、1024/1025 断点与桌面恢复、手机表格字段标签和可操作的窄屏编辑弹窗。
- `review-style-layout.e2e.test.mjs`:维护条随内容与视口变化、超长通知内部滚动、帮助/购物车/机型/配置摘要吸顶避让,退出布局后的偏移清理与导航单一键盘焦点;首页用户 ID 复制按钮在各宽度下不拆行(该问题只在 Firefox 出现,场景额外启动 Playwright Firefox,需先执行 `npx playwright install firefox`)。
- `review-style-fields.e2e.test.mjs`:深色商品说明对比度、提现样式隔离、实名认证与转账凭证上传名称;实际升级弹窗的窄屏网格。
- `review-style-motion.e2e.test.mjs`:实例监控 Canvas 初始/刷新/加载反馈跟随系统减动偏好,并验证偏好切换及离页后无运行时错误。
+10
View File
@@ -133,6 +133,16 @@ test(
await page.getByRole("dialog", { name: "主导航", exact: true }).count(),
0,
);
const link = navigation(page).getByRole("link", {
name: "SSH 密钥",
exact: true,
});
await link.focus();
assert.equal(
await link.evaluate((element) => element === document.activeElement),
true,
"Desktop navigation is focusable after the overlay closes",
);
return {
desktopAt1025: true,
overlayAt1024: true,