Skip to content

fix(desktop): harden e2e scroll and persona menu checks#1416

Open
wesbillman wants to merge 1 commit into
mainfrom
pinky/e2e-scroll-contract
Open

fix(desktop): harden e2e scroll and persona menu checks#1416
wesbillman wants to merge 1 commit into
mainfrom
pinky/e2e-scroll-contract

Conversation

@wesbillman

Copy link
Copy Markdown
Collaborator

Summary

  • classify timeline message deltas by membership so older-history prepends are distinct from latest-message appends
  • use that prepend classification in useAnchoredScroll so older history does not increment the new-message affordance
  • harden the persona provider E2E menu selection by waiting on a fresh visible Radix menu item before clicking

Validation

  • cd desktop && pnpm build
  • cd desktop && node --import ./test-loader.mjs --experimental-strip-types --test src/features/messages/lib/timelineSnapshot.test.mjs
  • cd desktop && pnpm exec playwright test --project=smoke tests/e2e/scroll-history.spec.ts -g "older-history prepend keeps" --repeat-each=10
  • cd desktop && pnpm exec playwright test --project=integration tests/e2e/persona-env-vars.spec.ts

Note: while checking wider scroll coverage, scroll-history.spec.ts >> does not teleport upward when user abandons fetch by jumping to bottom also fails on unmodified origin/main locally, so I did not fold a speculative fix for that separate existing issue into this PR.

Treat timeline prepends as a distinct message delta so older-history pages do
not look like new unread arrivals when the newest row is unchanged. Also use a
fresh Radix menu item lookup for persona provider selections in the e2e test.

Co-authored-by: Pinky <44b8e82baa6e0e254e0208d68f335c283c94e7b78dd1fa10d5a49d3f13dd0435@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
@wesbillman wesbillman force-pushed the pinky/e2e-scroll-contract branch from 6e9119b to 5deaeb6 Compare July 1, 2026 00:38
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