Skip to content

Commit

Permalink
refactor: test attribute removed from menu-button template
Browse files Browse the repository at this point in the history
  • Loading branch information
roomman committed Nov 21, 2021
1 parent f11661f commit 7d99f2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion addon/components/menu/button.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{{! template-lint-disable no-down-event-binding }}
<button
data-test-headlessui-menu-button
type='button'
aria-haspopup={{true}}
aria-controls={{if @isOpen @itemsGuid}}
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/components/menu-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function getMenu() {
}

function getMenuButton() {
return find('button,[role="button"],[id^="headlessui-menu-button-"]');
return find('button,[role="button"],[data-test-menu-button]');
}

function getMenuItems() {
Expand Down

0 comments on commit 7d99f2c

Please sign in to comment.