Skip to content

docs(testing): await async-gated content in CV tests - #115

Merged
racitores merged 1 commit into
mainfrom
docs/cv-await-gated-content
Aug 7, 2026
Merged

docs(testing): await async-gated content in CV tests#115
racitores merged 1 commit into
mainfrom
docs/cv-await-gated-content

Conversation

@racitores

Copy link
Copy Markdown
Contributor

Summary

  • Add CV guidance for the flake class where a container mounts before a child value settles (own query / debounce / skeleton).
  • Encode it as Golden Rule 13, a writing-tests pitfall, self-review checklist item, diagnosing-failures row, assertion pattern, and What NOT to Do example in mobile-testing component-view refs.
  • Motivated by the intermittent PredictMarketDetails Positions-tab $60 failure on metamask-mobile main CI (sync getByText after awaiting only the tab container).

Test plan

Made with Cursor

Document the pattern where a container mounts before a child value
settles (query/debounce/skeleton), so agents await the gated value
instead of racing with a sync getBy* under CI load.

Co-authored-by: Cursor <cursoragent@cursor.com>
@racitores
racitores enabled auto-merge (squash) August 7, 2026 16:15
@racitores
racitores merged commit 08078d0 into main Aug 7, 2026
28 checks passed
@racitores
racitores deleted the docs/cv-await-gated-content branch August 7, 2026 16:23
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.

2 participants