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

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
MajorLift added a commit that referenced this pull request Aug 31, 2026
The 25 conflicts were all in files this branch picked up when #97 merged in,
never in its own `domains/stability/` content. `main` has since carried five
more commits over those same files — #109, #115, #54, #120, #132 — against
this branch's single snapshot of them, so `main` is authoritative for every
one and its version is taken throughout.

That includes six deletions: #120 dropped Detox E2E, and the four
`references/detox/` files plus `detox-to-appium.md` and
`detox/legacy-playbook.md` go with it. Nothing references them.

The merged tree now differs from `main` only in the `CODEOWNERS` line this PR
adds and its five `domains/stability/` files.
andrepimenta added a commit that referenced this pull request Sep 7, 2026
Step 2 of docs/processes/releasing.md — "review the generated CHANGELOG.md
section and keep entries consumer-facing". The generated section needed it in
two places.

`### Uncategorized` held ten merged PRs that never got a hand-written entry.
Since `package.json` `files` ships `domains/` alongside `bin/` and `tools/`,
skill content reaches consumers on upgrade, so most of these are genuinely
user-facing and belong in the notes rather than being dropped. Rewritten from
the consumer's point of view and grouped by theme rather than one line per PR:
the component-view testing work (#109, #115, #132) reads as one change, as does
the Mobile testing default plus the Appium playbook move (#70, #54).

Dropped #63 and #77 — `.cursor` review rules and `.github`/`CONTRIBUTING`
changes are not in the published package, so an upgrading consumer sees nothing
of them.

`### Added` had the same problem less visibly: around a dozen raw
conventional-commit titles (`feat: add ...`, `feat(cli): ...`) that read as
commit log rather than release notes. Prefixes stripped, past tense applied.
Three were duplicates of curated entries for the same PR (#136, #75, and the
component-view flakiness line now covered by the #109 entry) and were removed.

Verified: `lint:changelog` passes, 69/69 tests, lint clean, `pack:dry-run` ok.
No `Uncategorized` section and no conventional-commit prefixes remain.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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