blade('');
expect($html)
->toContain('x-persist="material-toast"')
->toContain('x-data="materialSnackbar"')
->toContain('data-md-toast')
->toContain('data-md-position="bottom"')
->and(ComponentStylesheet::read('toast')->declarations('[data-md-toast-snackbar]'))->toMatchArray([
'background-color' => 'var(--md-sys-color-inverse-surface)',
'color' => 'var(--md-sys-color-inverse-on-surface)',
]);
});
it('draws no state icon, and reaches 48px from its 40px controls', function () {
$html = (string) $this->blade('');
$css = ComponentStylesheet::read('toast');
// M3 tells you to avoid an icon in a snackbar; the type is left to pick the announcement role.
expect(substr_count($html, '