The Preview scroll test waits for the call it asserts (#1039) #1041
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1039-preview-scroll-test-waits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1039.
Summary
Preview.jsxbrings the panel into view from a passive effect. The test asserted the secondscrollIntoViewcall on the line afterfindByTextresolved, which is at commit and so can be before that effect has run on a busy runner. The test now waits for the call itself. Test only; the component is unchanged.It turned PR #1038 (no frontend change) red once and PR #1034 (backend only) red once.
Changelog
changelog.d/1039-preview-scroll-test-waits.fixed.md(scripts/changelog.py checkpasses)Test plan
await waitFor(...)around an existing assertion.🤖 Generated with Claude Code