blade("Body"))->toContain($classes)->toContain('rounded-corner-md')->toContain('data-card'); })->with([ 'filled' => ['filled', 'bg-surface-container-highest'], 'elevated' => ['elevated', 'bg-surface-container-low shadow-elevation-1'], 'outlined' => ['outlined', 'border border-outline-variant bg-surface'], ]); it('is filled unless it knows the variant', function () { expect((string) $this->blade('Body'))->toContain('bg-surface-container-highest'); }); it('lays out a header, menu, media, body and actions', function () { $html = (string) $this->blade(<<<'BLADE' Expires in 3 days. BLADE); expect($html) ->toContain('') ->toContain('

holiday-photos.zip

') ->toContain('248 MB') ->toContain('') ->toContain('role="separator"') ->toContain('Expires in 3 days.') ->toContain('') ->and(strpos($html, 'Expires'))->toBeLessThan(strpos($html, 'Copy link')); }); it('passes row attributes through', function () { expect((string) $this->blade('Open')) ->toContain('data-list-row') ->toContain('data-list-open'); });