Skip to content

test(landing): await onboarding progress text in a11y audit - #1087

Open
ezedike-evan wants to merge 1 commit into
mainfrom
fix/landing-a11y-flake
Open

ezedike-evan wants to merge 1 commit into
mainfrom
fix/landing-a11y-flake

Conversation

@ezedike-evan

Copy link
Copy Markdown
Contributor

What changed

a11y-audit.test.jsx checked the onboarding progress text with a synchronous getByText right after the heading appeared. The heading renders before the status fetch settles, and the 67% text only appears once the demo-data fallback is set, so the check raced it. It passed on #1085's PR run but failed on main after the merge (WCAG 2.2 AAA audit job).

Now it waits with findByText.

How to test

npm run test:landing

🤖 Generated with Claude Code

The heading renders before the status fetch settles, so a synchronous
getByText raced the demo-data fallback and failed intermittently on main.

This branch has not been deployed

No deployments
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.

1 participant