Skip to content

docs(sim): name screenshots by scenario - #11

Merged
TN019 merged 13 commits into
mainfrom
docs/scenario-screenshot-names
Dec 1, 2026
Merged

TN019 merged 13 commits into
mainfrom
docs/scenario-screenshot-names

Conversation

@TN019

@TN019 TN019 commented Dec 1, 2026

Copy link
Copy Markdown

Why

The screenshot notes and the Gate 3 test described a "state" and a "crash scenario", while the file names and the table describe what a viewer sees. The wording should name each pair by the scenario it shows.

What changed

  • Rename the Playwright test to Gate 3 stops after an unknown barcode.
  • docs/screenshots/README.md and its Chinese version: the table column becomes "Scenario" and the text speaks of scenarios rather than states.
  • Reword the screenshot introduction in README.md and README.zh-CN.md.
  • scripts/screenshots.sh: the error for a missing GATE3_WORKING_REF asks for the Gate 3 fix revision.
  • scripts/e2e-gatepost.sh controls now defaults GATEPOST_REF to main, the revision the README uses for that check.

How to verify

pnpm exec playwright test --list e2e/real-gate3-stopped.spec.ts
scripts/e2e-gatepost.sh

The list shows Gate 3 stops after an unknown barcode; the script without arguments prints its usage and exits with status 2.


背景

截图说明和 Gate 3 测试里用的是“状态”“崩溃场景”这样的说法,而文件名和表格描述的是看到的画面。每对截图应按它展示的场景来命名。

改动

  • Playwright 测试改名为 Gate 3 stops after an unknown barcode。
  • docs/screenshots/README.md 及中文版:表格列名改为“场景”,正文也改说场景而不是状态。
  • 调整 README.md 和 README.zh-CN.md 中截图一节的开头说明。
  • scripts/screenshots.sh:缺少 GATE3_WORKING_REF 时的提示改为要求 Gate 3 修复后的版本。
  • scripts/e2e-gatepost.sh controls 的 GATEPOST_REF 默认值改为 main,与 README 中这项检查所用的版本一致。

怎么验证

pnpm exec playwright test --list e2e/real-gate3-stopped.spec.ts
scripts/e2e-gatepost.sh

列表中应出现 Gate 3 stops after an unknown barcode;不带参数运行脚本会打印用法并以状态 2 退出。

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Author

Mateo Rossi · reviewer

This also gives controls a default GATEPOST_REF. Does that belong in a docs change?


这个改动还给 controls 加了 GATEPOST_REF 的默认值,放在文档改动里合适吗?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Author

Noah Williams · author

It is one line, and it makes the bare scripts/e2e-gatepost.sh controls do what the README already documents with GATEPOST_REF=main. No other mode changes.


只有一行,作用是让不带变量的 scripts/e2e-gatepost.sh controls 与 README 中 GATEPOST_REF=main 的写法行为一致,其他模式都没有变化。

@TN019
TN019 merged commit da52a07 into main Dec 1, 2026
1 check failed
@TN019
TN019 deleted the docs/scenario-screenshot-names branch December 1, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant