Skip to content

[codex] Keep browser smoke screenshots out of tracked baselines - #47

Merged
blackopsrepl merged 1 commit into
mainfrom
codex/issue-46-browser-screenshot-artifacts
May 13, 2026
Merged

[codex] Keep browser smoke screenshots out of tracked baselines#47
blackopsrepl merged 1 commit into
mainfrom
codex/issue-46-browser-screenshot-artifacts

Conversation

@blackopsrepl

Copy link
Copy Markdown
Contributor

Summary

  • route default browser smoke screenshots to target/browser-smoke/screenshots/ instead of tracked screenshots/
  • add make screenshots-update and --update-screenshots for intentional baseline refreshes
  • update README and demo docs to document the split workflow

Context

Fixes #46. Related to #45.

This is the separate browser-test workflow fix discussed while reviewing @benabel's TypeScript PR, so #45 can drop the pre-push screenshot reset workaround and stay focused on type-checking.

Validation

  • make test-browser
  • node tests/demo-browser-check.js --bad-option
  • make test-frontend
  • make lint-frontend
  • make -n screenshots-update
  • make ci-local

Note: I did not run full make screenshots-update because this environment currently regenerates rail-timeline-narrow.png differently, and that command would intentionally update a tracked baseline outside this fix.

Browser smoke tests wrote timeline acceptance screenshots directly into the tracked screenshots directory, so ordinary validation could dirty the worktree and push contributors toward cleanup hooks.

Route default browser captures to the ignored target/browser-smoke/screenshots artifact directory instead, and reserve tracked baseline refreshes for the explicit --update-screenshots runner flag and make screenshots-update target.

Update the README and demo docs to document the split between non-mutating smoke validation and intentional baseline refreshes.
@blackopsrepl blackopsrepl self-assigned this May 13, 2026
@blackopsrepl blackopsrepl added the bug Something isn't working label May 13, 2026
@blackopsrepl
blackopsrepl marked this pull request as ready for review May 13, 2026 18:36
@blackopsrepl
blackopsrepl merged commit 9b5495b into main May 13, 2026
1 check passed
@blackopsrepl
blackopsrepl deleted the codex/issue-46-browser-screenshot-artifacts branch May 15, 2026 18:26
@blackopsrepl
blackopsrepl restored the codex/issue-46-browser-screenshot-artifacts branch May 15, 2026 18:29
@blackopsrepl
blackopsrepl deleted the codex/issue-46-browser-screenshot-artifacts branch May 15, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep browser smoke tests from rewriting tracked screenshots by default

1 participant