blade(<<<'BLADE' BLADE); expect($html) ->toContain('x-data="materialMenu"') ->toContain('data-md-fab-menu') ->toContain('aria-label="New"') ->toContain('data-md-fab-menu-trigger') ->toContain('data-md-color="secondary"') ->toContain('role="menu"') ->toContain('data-md-fab-menu-popover') ->toContain('data-md-position="top-end"') ->toContain('data-md-fab-menu-item') ->toContain('role="menuitem"') ->toContain('wire:click="upload"') ->toContain('Upload files') ->and(ComponentStylesheet::read('fab-menu')->declarations('[data-md-fab-menu-popover]'))->toMatchArray([ 'max-block-size' => 'calc(100dvh - 128px)', 'overflow-y' => 'auto', ]) ->and(ComponentStylesheet::read('fab-menu')->declarations("[data-md-fab-menu-trigger][aria-expanded='true']"))->toBe([ 'border-radius' => 'var(--md-sys-shape-corner-full)', 'background-color' => 'var(--md-fab-menu-color)', 'color' => 'var(--md-fab-menu-on-color)', ]); }); it('draws the trigger and its items from the foundation\'s shared classes, not their own', function () { $html = (string) $this->blade(<<<'BLADE' BLADE); expect($html) ->toContain('class="md-state-layer md-focus-ring" aria-label="New"') ->toMatch('/