Skip to content

test(forms): add structural snapshot tests#798

Open
pchieneye wants to merge 1 commit into
Talenttrust:mainfrom
pchieneye:test/forms-21-snapshot
Open

test(forms): add structural snapshot tests#798
pchieneye wants to merge 1 commit into
Talenttrust:mainfrom
pchieneye:test/forms-21-snapshot

Conversation

@pchieneye

@pchieneye pchieneye commented Jul 25, 2026

Copy link
Copy Markdown

test(forms): add structural snapshot tests

Summary

This PR adds deterministic structural/snapshot coverage for the contract and milestone form render output.

What changed

  • Added empty-state, populated-state, and validation-error structure assertions for the contract creation form.
  • Added empty-state and loaded-state structure assertions for the milestone creation form.
  • Captured stable snapshots to guard against regressions in rendered form structure and key UI states.

Why

The forms’ rendered structure was not being protected by deterministic tests, which made regressions easier to miss. These tests increase confidence in the form markup and accessibility-related structure without relying on timestamps or random values.

Verification

The following checks were run successfully:

  • npm run lint
  • npm test -- --runInBand
  • npm run build

Closes: #710

@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@pchieneye 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.

Add snapshot/structure tests for the forms rendered output

2 participants