Commit a82c877
fix(cypress): use atomic selectors to avoid stale DOM in action menu queries
getActionEntryForFile/Id chained .find() off a cy.get() result inside a
.then() callback. After the actions button click triggers a Vue re-render,
the stored element reference goes stale before .find() executes, causing
intermittent "subject no longer attached to DOM" failures in files-sidebar,
public-share/download, and version_naming specs.
Collapse the two-step get+find into a single combined CSS selector so
Cypress retries the whole query atomically on re-render. Same fix applied
to the alias-then-find pattern in version_naming.cy.ts.
Signed-off-by: Anna Larch <anna@larch.dev>
AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Anna Larch <anna@nextcloud.com>1 parent 54609da commit a82c877
2 files changed
Lines changed: 6 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
| |||
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 40 | + | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
87 | 83 | | |
88 | 84 | | |
89 | 85 | | |
| |||
0 commit comments