Skip to content

fix(e2e): retry open-with submenu click to fix flaky context menu - #3757

Merged
v-scharf merged 2 commits into
mainfrom
fix/e2e-open-with-flaky
Oct 13, 2026
Merged

v-scharf merged 2 commits into
mainfrom
fix/e2e-open-with-flaky

Conversation

@v-scharf

@v-scharf v-scharf commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

The "Open with..." submenu in the context menu sometimes collapses mid-animation under load, so the click on the editor missed and the file didn't open (flaky, e.g. yjs public link tests). Wrapped the click in expect().toPass() so it re-hovers and retries.

Related Issue

  • Fixes n/a

How Has This Been Tested?

  • e2e scenarios using "opens file ... via ... using the context menu"

Types of changes

  • Tests (adding or improving tests)

The hover-triggered "Open with..." submenu could collapse mid-animation
after becoming visible, so the follow-up click occasionally missed and the
file viewer never opened. Re-hover the trigger and retry the click via
expect().toPass() with a short per-attempt timeout so a dropped click is
retried instead of hanging.
@v-scharf v-scharf self-assigned this Oct 13, 2026
@v-scharf
v-scharf enabled auto-merge (squash) October 13, 2026 09:34
@v-scharf
v-scharf merged commit b953de9 into main Oct 13, 2026
27 checks passed
@v-scharf
v-scharf deleted the fix/e2e-open-with-flaky branch October 13, 2026 13:51
@openclouders openclouders mentioned this pull request Oct 13, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants