Commit 7b0e4be
committed
🤖 fix(test): use exact button names in ToggleGroup test to avoid theme toggle collision
The StorybookThemeToggle button text contains 'Dark' and 'Light'
(e.g., '🌙 Dark'), which was causing 'Found multiple elements' errors
when the test used regex matching /dark/i and /light/i.
Using exact name matching ('Dark' vs '🌙 Dark') avoids the collision
while keeping the test focused on the actual ToggleGroup component.
Fixes: ToggleGroup:Two Options dark/light test failures1 parent f51df19 commit 7b0e4be
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments