Repository navigation
fix(test): qa-7.3 证据载体不再吞断言失败(#517) - #523
Merged
Merged
Conversation
- record() 把断言失败收进 steps 而不抛出,afterAll 只写报告不 assert —— 实测报告写着 verdict=FAIL、10/12,套件却 1 passed。补 afterAll 断言把累积失败升级成测试失败, 顺序固定「先落盘报告、再断言」,保证失败时现场可查; - 修好门禁后立刻暴露一条长期被掩盖的失败:9-invite-link-inviteview。根因是前序步骤 恢复的页签让 App 直接进工作区,InviteView 根本不渲染 —— 该步验的是落地页变体, 必须从空会话开始;已在该步开头清 localStorage + IndexedDB; - 「有会话时邀请链接被工作区接管」属于产品判断,另建 #522(needs-triage),不在本票决定。 红证:注入一个只失败、不破坏页面状态的 record 步骤 → 修复前 1 passed(report FAIL 10/12); 修复后 1 failed;去掉注入 11/11 通过。 refs #517
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更概述
qa-7.3-manual.spec.ts的证据载体不再吞断言失败:报告写着 FAIL 而套件绿的日子结束。修好门禁后同时暴露并修掉了一条长期被掩盖的陈旧断言。关联 Issue
fixes #517
变更内容
apps/web/test(单文件)+ 证据 JSONapps/web/test/qa-7.3-manual.spec.ts、apps/web/test-results/qa-7.3/qa-7.3-report.jsonrecord()用 try/catch 把断言失败收进steps,afterAll只writeFileSync+console.log,从不 assert。补一条expect(Object.entries(steps).filter(([, s]) => !s.pass)).toEqual([]),顺序固定为「先落盘报告、再断言」,失败时现场仍可查。9-invite-link-inviteview立刻变红。它的失败不是回归:该步验的是落地页变体,但前序步骤恢复的页签让 App 直接进工作区,invite-hero不渲染。已在该步开头清localStorage+IndexedDB,让这一步真正测到落地页。needs-triage),本 PR 不改产品行为。影响范围
验证方式与结果
pnpm -r test— renderer 121 / editor 957 / app-kit 18 / web 419pnpm -r typecheck— 4 个包全 Donepnpm -r lint— 0 errorsplaywright test test/qa-7.3-manual.spec.ts --retries=0— 11/11 passedQG-5 验证基于 303b749)红证与绿证
playwright test qa-7.3-manual.spec.ts1 passed (22.5s),报告FAIL 10/12(缺陷复现)1 failed(门禁咬住)11/11 passed,1 passed (12.6s)质量门禁引用
record()吞错 +afterAll不断言),并额外查出票面没写的第二个受害步骤9-invite-link-inviteview,用真实浏览器分别验了「有会话 / 空会话」两种状态。1 passed而报告FAIL 10/12),不是「应该会红」的推断。#517修复完成即关闭;连带发现的产品问题另立 [bug] 已有会话时邀请链接被工作区接管,InviteView 不渲染 #522,不在本票静默扩大范围。afterAll(证据落盘之后),保证失败现场可查;测试不再依赖前序步骤的残留会话状态。风险评估
risk-lowai-generatedgit revert <merge-commit>即可回滚