Commit 91bbc1f
committed
Address PR #1327 review: replace last().click() with getByRole
Harden the remaining Cancel-button selector in the edit-modal cancel
test — `.oc-modal button:has-text('Cancel')` + `.last()` silently picks
whichever Cancel is last in DOM order, which is fragile if a future
render adds a second cancel-like control. Switch to
`getByRole("button", { name: "Cancel", exact: true })` to match the
Save-Changes pattern used earlier in the file.1 parent aa21704 commit 91bbc1f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
747 | | - | |
| 747 | + | |
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
| |||
0 commit comments