Skip to content

Testing infra: factories, snapshot, a11y coverage, web vitals - #968

Merged
Kingsman-99 merged 4 commits into
Stellar-split:mainfrom
chriz-cloud:fix/issues-907-906-905-904
Oct 20, 2026
Merged

Kingsman-99 merged 4 commits into
Stellar-split:mainfrom
chriz-cloud:fix/issues-907-906-905-904

Conversation

@chriz-cloud

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • npm run test — new factory usage and snapshot test pass (snapshot auto-generates on first run)
  • npm run test:e2e -- --grep @a11y — Settings page passes the axe gate
  • Manual: verify Web Vitals measurements appear on Sentry transactions

Closes #907
Closes #906
Closes #905
Closes #904

Ad-hoc mockInvoice objects were duplicated with drifting shapes across
test files. Add src/test/factories.ts with createMockInvoice() and
migrate stores.test.ts to use it as a concrete example.
Vitest supports toMatchSnapshot but no snapshot tests existed. Add a
concrete snapshot test for StatusBadge, a small stable presentational
component, covering two prop variants.
Automated WCAG 2.1 AA checks (@axe-core/playwright) already exist for
Home/Dashboard/New Invoice but not for every key page. Add Settings to
the audited page list.
…ce monitoring

Sentry tracing was configured (tracesSampleRate) but Core Web Vitals
(CLS, LCP, INP, TTFB, FCP) were never captured. Add a WebVitalsReporter
using next/web-vitals that forwards each metric to Sentry as a
measurement, giving real-user performance benchmarking.
@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

@chriz-cloud is attempting to deploy a commit to the kingsman-99's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Kingsman-99
Kingsman-99 merged commit c2b5515 into Stellar-split:main Oct 20, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants