diff --git a/tests/Browser/BarsTest.php b/tests/Browser/BarsTest.php index 976c76ca..61d70653 100644 --- a/tests/Browser/BarsTest.php +++ b/tests/Browser/BarsTest.php @@ -141,6 +141,7 @@ it('turns section tabs into a picker on a phone', function () { ->assertScript("getComputedStyle(document.querySelector('[data-section-nav] nav')).display === 'none'") ->click('[data-section-picker] button') ->assertScript("document.querySelector('[data-section-picker] [popover]').matches(':popover-open')") - ->assertAttribute('[data-section-picker] [role="menuitemcheckbox"][href="#profile"]', 'aria-checked', 'true') - ->assertAttribute('[data-section-picker] [role="menuitemcheckbox"][href="#security"]', 'aria-checked', 'false'); + // A menu of places: the current section is the page, not a checked choice. + ->assertAttribute('[data-section-picker] [role="menuitem"][href="#profile"]', 'aria-current', 'page') + ->assertScript("! document.querySelector('[data-section-picker] [role=\"menuitem\"][href=\"#security\"]').hasAttribute('aria-current')"); });