Match the app bar's overflow menu item past its new class
Follow-up to menu-item's move to the interaction classes (this batch): the app bar's own test anchored a menu item's link right after <a, which the item's new class="md-state-layer md-focus-ring" now precedes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9
This commit is contained in:
co-authored by
Claude Opus 5
parent
d5a3df535c
commit
884f585e4d
@@ -76,7 +76,7 @@ it('keeps two trailing icon buttons below medium and four from it, the rest in a
|
||||
->and(preg_match_all('/role="menu"\s+data-md-menu-popover\s+data-md-position="bottom-end"\s+aria-label="More options"/', $html))->toBe(2)
|
||||
// Below medium: all but the first.
|
||||
->and($compact)
|
||||
->toMatch('/<a data-md-menu-item[^>]*role="menuitem" tabindex="-1" href="\/shares\/1\/share"/')
|
||||
->toMatch('/<a class="md-state-layer md-focus-ring" data-md-menu-item[^>]*role="menuitem" tabindex="-1" href="\/shares\/1\/share"/')
|
||||
->toMatch('/role="menuitemcheckbox" aria-checked="true"[^>]*wire:click="star"/')
|
||||
->toMatch('/role="menuitem"[^>]*wire:click="archive"/')
|
||||
->toMatch('/role="menuitem" aria-disabled="true"/')
|
||||
|
||||
Reference in New Issue
Block a user