Skip to content

Commit

Permalink
fix: replaced tabindex with data-highlighted for <Menu.SubmenuTrigger…
Browse files Browse the repository at this point in the history
… /> tests
  • Loading branch information
onehanddev committed Jan 14, 2025
1 parent 9ac8981 commit 7f69c60
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ describe('<Menu.SubmenuTrigger />', () => {

submenuItems.forEach((item) => {
if (item === submenuItem1) {
expect(item).to.have.attribute('tabindex', '0');
expect(item).to.have.attribute('data-highlighted');
} else {
expect(item).to.have.attribute('tabindex', '-1');
expect(item).not.to.have.attribute('data-highlighted');
}
});

Expand All @@ -70,7 +70,7 @@ describe('<Menu.SubmenuTrigger />', () => {
.getAllByRole('menuitem')
.filter((item) => item.textContent !== '2.1' && item.textContent !== '2.2');
parentMenuItems.forEach((item) => {
expect(item).not.to.have.attribute('tabindex', '0');
expect(item).not.to.have.attribute('data-highlighted');
});
});
});
Expand Down

0 comments on commit 7f69c60

Please sign in to comment.