Skip to content

test(files): make row action-menu lookup atomic to fix detached-DOM f…#61101

Draft
pringelmann wants to merge 1 commit into
masterfrom
fix/cypress-files-action-menu-flake
Draft

test(files): make row action-menu lookup atomic to fix detached-DOM f…#61101
pringelmann wants to merge 1 commit into
masterfrom
fix/cypress-files-action-menu-flake

Conversation

@pringelmann

@pringelmann pringelmann commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Should make Files cypress tests a little less flaky 🤞

getActionEntryFor* in files test utils looked up the open row action menu in two steps. The menu is a teleported NcActions popover that re-renders, so the captured subject detaches and the chained .find() throws "subject is no longer attached to the DOM". This seems to be one of the most frequent cypress flakes on master, hitting files-renaming, files-copy-move, etc. etc.

Change

Collapse the lookup into one atomic query so cypress retries the whole selector against the live DOM when the popover re-renders, instead of holding a stale subject.

…lake

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann pringelmann self-assigned this Jun 9, 2026
@pringelmann pringelmann added 3. to review Waiting for reviews tests Related to tests CI labels Jun 9, 2026
@pringelmann pringelmann force-pushed the fix/cypress-files-action-menu-flake branch from e695541 to 6b5f007 Compare June 9, 2026 15:11
@susnux susnux added this to the Nextcloud 35 milestone Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews CI tests Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants