Skip to content

test(desktop): scope video menu e2e probes to emitted messages - #7953

Merged
baxen merged 1 commit into
mainfrom
murderbot/fix-video-menu-e2e
Sep 28, 2026
Merged

baxen merged 1 commit into
mainfrom
murderbot/fix-video-menu-e2e

Conversation

@baxen

@baxen baxen commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes the Desktop Smoke E2E (4) failure on main. The test at desktop/tests/e2e/video-attachment.spec.ts ("right-click menus expose distinct selectors for links, relay video, and off-relay video") fails 3/3 attempts on main and on every PR branch since ~Sept 25. Because "Desktop" is a required check, that blocks merges.

Cause: the relay-video and off-relay-video probes picked their player with getByTestId("video-player").last(). When mock messages share a second, timeline ordering can put a different video last. The locator then resolves to the wrong player, and the "Download video" menu detaches before the click, so the test times out.

Fix: scope each probe to the data-message-id of the message emitVideoMessage just returned. Test-only change, 16 lines.

Attribution

This is a cherry-pick of dfd5db4e0 by @Tornquist, originally part of #7827 (the deletion-drain cron, which is stacked on another feature branch). It's pulled out on its own so main can go green without waiting on that stack. Authorship is preserved.

Testing

  • pnpm build:e2e && playwright test tests/e2e/video-attachment.spec.ts --project=smoke: 13/13 passed locally, including the target test.

🤖 Generated with Claude Code

Bind each context-menu interaction to the exact mock message returned by the emitter so same-second ordering cannot select the wrong video.

Co-authored-by: Codex <noreply@openai.com>
Signed-off-by: tornquist <tornquist@squareup.com>
(cherry picked from commit dfd5db4)
Signed-off-by: murderbot <3754f8729004d95654c46dbab3129e4ab9ef05cc2534e2a3fbfc155983bd637b@buzz.block.builderlab.xyz>
@baxen
baxen requested a review from a team as a code owner September 28, 2026 19:05
@github-actions

Copy link
Copy Markdown

🔐 Codex Security Review

Status: review required for the current range.

The current range is 52c4c08c9ef349f2bb994ca40e98faa0f44209ea...a240e601453588f0eb9b9bfd6f5775d4e13eaf77.
A new review must complete for this exact range. When manual authorization
is required, a Block organization member must comment exactly
@buzz-security-review a240e601453588f0eb9b9bfd6f5775d4e13eaf77 to authorize a new review.
Any previous review applies only to its recorded range.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T19:07:39.722464Z a240e60 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@baxen
baxen enabled auto-merge (squash) September 28, 2026 19:06

@loganj loganj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but didn't you implement sub-second ordering?

@baxen
baxen merged commit 548718e into main Sep 28, 2026
57 checks passed
@baxen
baxen deleted the murderbot/fix-video-menu-e2e branch September 28, 2026 19:46
wpfleger96 pushed a commit that referenced this pull request Sep 28, 2026
Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>

* origin/main:
  Add native HPKE encryption for nsec backups (#7849)
  test(desktop): scope video menu e2e probes to emitted messages (#7953)
  Add owner deletion admission control plane (#7818)

Signed-off-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz>
johnmatthewtennant pushed a commit that referenced this pull request Sep 28, 2026
…in-ui

* origin/main:
  test(desktop): wait for channel head refresh before paging thread summary test (#7955)
  🤖 perf: bound long-thread aux reads and make query deadlines terminal (#7854)
  Add native HPKE encryption for nsec backups (#7849)
  test(desktop): scope video menu e2e probes to emitted messages (#7953)
  Add owner deletion admission control plane (#7818)
  fix(sidebar): converge stale-at-open state across devices (sections/sort/stars/mutes) (#7805)
  feat(nip-fi): harden Blossom kind-24242 verifier to NIP-FI spec (#7288)
  Make relay readiness process-local (#7341)
  🤖 docs(nip-fi): remove implementation references from the spec (#7912)

Signed-off-by: Sol <49aa1f65411fd096d2e2ec144f1e7aa36fdc76d1b907cfdf7be000c66f9d3b8e@buzz.block.builderlab.xyz>
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.

4 participants