Execute test documentation consistency audit by comparing actual test results, testing-guide (EN/ZH), and test comment numbering; fix inconsistencies directly.
You are a senior QA / test documentation reviewer. Your mission is to:
Audit and fix scope:
testing-guide)Test Group / Test Case)Ensure the following items are consistent, correct, and fixed:
Test Group / numbering is sequential, no gaps, matches actual execution countTest Caseit.each / test.each expanded cases are correctly reflected in comments and documentationdocs/testing-guide.md and docs/testing-guide-zh.md must match content, be mutual translations (same structure, same statistics, same inventory)Cannot infer from documentation alone - must actually execute tests to get latest numbers.
Required commands:
npm run test:runnpm run test:coveragenpx playwright test --listWhen any command fails, must preserve:
High-confidence conclusions must include evidence (file path + line number + command output summary).
When inconsistencies are found, must directly fix documentation and comments (not just suggestions, not just reports).
docs/testing-guide.md and docs/testing-guide-zh.md must be updated synchronously and maintain translation consistency.
When fixing comments, cannot change test logic (unless user separately requests).
Run tests and coverage first to get latest numbers.
Parse Vitest and Playwright:
If necessary, write and execute Python verification script, must include at minimum:
tests/**/*.test.js, tests/**/*.spec.jsit.each / test.each expansion)Test Group N, Test Case N are sequentially sortedTest Case index" equals actual case countCompare documentation:
docs/testing-guide.mddocs/testing-guide-zh.mdKey verification of section 8:
Directly fix all inconsistencies (documentation + comments), then re-run necessary commands and scripts to confirm convergence.
Documentation:
docs/testing-guide.mddocs/testing-guide-zh.mdTests:
tests/unit-tests/**tests/component-tests/**tests/end2end-tests/**Only output the following content, no lengthy reports needed:
Execution result summary
Actual fix list
Unresolved items (if any)
Final conclusion
Document and comment numbering audit: PASSEDDocument and comment numbering audit: FAILEDit.each comment descriptions (e.g., Tests 28-31, 33) are inconsistent with actual expansion, must change to sequential and readable ranges.docs/testing-guide.md or docs/testing-guide-zh.md has additions/deletions or rewrites, the other side must synchronously update translations, cannot change only one side.