Commit e1608e4
[scanner] 🐛 fix: repair ClusterCardList test selectors for refresh button
The ActionTooltipWrapper span carries role="button" (added in PR #19270),
which caused getByRole('button', { name: /common\.refresh/i }) to match
both the wrapper span and the inner <button> — throwing "Found multiple
elements". Fix mirrors the pattern already used in ClusterCardFull.test.tsx:
use getAllByRole(...).find(el => el.tagName === 'BUTTON')! to target the
actual <button> element.
Signed-off-by: hive-scanner <hive-scanner@kubestellar.io>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d456039 commit e1608e4
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
0 commit comments