Commit 9d32f83
committed
e2e: scope index.cy.js tree assertions to the treeitem
cy.contains("preview")/("Emails") matched the label text directly, so
wrapping the label (e.g. a truncating <div>, as in #484) made the
assertions target the wrapper instead of the role="treeitem" element and
fail on the role/aria-expanded attrs. Scope with
cy.contains('[role="treeitem"]', ...) so the checks stay on the treeitem.
Verified locally: passes both with and without the wrapper.1 parent aae797d commit 9d32f83
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
0 commit comments