Skip to content

test(visual): establish deployment preview screenshot baselines#528

Open
Flamki wants to merge 1 commit intoStellerCraft:mainfrom
Flamki:issue-015-visual-regression-baselines-deployment-preview
Open

test(visual): establish deployment preview screenshot baselines#528
Flamki wants to merge 1 commit intoStellerCraft:mainfrom
Flamki:issue-015-visual-regression-baselines-deployment-preview

Conversation

@Flamki
Copy link
Copy Markdown

@Flamki Flamki commented Apr 29, 2026

Summary

This PR establishes real visual regression baselines for deployment preview screenshots and wires them into CI.

  • Replaced in-memory preview snapshots with file-backed baselines for dex, defi, payment, and �sset categories.
  • Committed initial baseline artifacts under �pps/backend/tests/visual/baselines/deployment-preview.
  • Added a CI workflow that runs baseline comparison and fails when diff exceeds the configured threshold.
  • Documented the baseline compare/update workflow in CONTRIBUTING.md.
  • Added explicit missing-baseline test coverage with a clear failure message.

Validation

  • VISUAL_BASELINE_MODE=store npm run --workspace @craft/backend test -- tests/visual/preview.visual.test.ts

pm run --workspace @craft/backend test -- tests/visual/preview.visual.test.ts

Issue

Fixes #489

Follow-up

  • Attach before/after screenshots for each template category: dex, defi, payment, �sset.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 29, 2026

@Flamki Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Establish visual regression baselines for deployment preview screenshots

1 participant