Repository navigation
VisualCI tests itself: screenshots, component and JSON snapshots from a visual CI job (sc-8336) - #1
Merged
Merged
Conversation
… and JSON snapshots, sent from a visual CI job - screenshots:seed task: a fixed dataset (two orgs on Free and Team, builds with image, PDF, JSON, HTML and text changes, an approved and a failed build) run through the real pipeline, with fixed ids and timestamps - scripts/screenshots: Playwright capture of the landing page, docs and app at 1440 and 390, light and dark; stable.mjs checks five runs give identical bytes (106 of 106 on docspring-dev) - Vitest + Testing Library snapshots of the presentational components, gitignored, uploaded with --from vitest - Request tests write MCP and REST answers as JSON snapshots when VISUALCI_JSON_SNAPSHOTS is set, with run-to-run noise replaced by numbered placeholders - month_start() reads VISUALCI_NOW, for the seeded month's usage Story: sc-8336
… public (sc-8336)
… .md files (sc-8336)
This was referenced Dec 2, 2026
Merged
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.
VisualCI's own CI sends one build to the
docspring/visualciproject, from a newvisualjob aftertest:screenshots:seedtask, platformchrome-linux.__snapshots__/is gitignored; CI runsvitest run -uand sends them withvisualci upload --from vitest.VISUALCI_JSON_SNAPSHOTSset, the request tests write every MCP tool call (arguments and result), the tools list for each kind of token, and four REST responses. Values that change every run (UUIDs, test org slugs, tokens,fb_ids, timestamps, presigned signatures) become numbered placeholders before writing. Thetestjob passes them on as an artifact.llms.txt,docs/quick-start.md, andvisualci.schema.jsononce the server serves it.Determinism
Dateis frozen at the seed's NOW (not Playwright's fake timers, which stall requestAnimationFrame). Animations and transitions are off. Each shot waits for network idle, fonts, every image (lazy ones forced eager) and the loading spinners.scripts/screenshots/stable.mjson docspring-dev: 106 of 106 identical across 5 runs.Other changes
month_start()readsVISUALCI_NOW, so the seeded month's credit usage shows on the billing pages. It's never set in production.Checked
cargo fmt,clippy -D warningsandcargo test --workspacepass on docspring-dev;vitest runpasses;scripts/ci/visual.sh captureruns end to end there in about 90 s, also after rebasing on the sc-8188 host split.Story: sc-8336