blade(''); expect($html) ->toContain('x-persist="material-toast"') ->toContain('x-data="materialSnackbar"') ->toContain('bg-inverse-surface') ->toContain('justify-center'); }); it('can sit at the start', function () { expect((string) $this->blade(''))->toContain('justify-start'); }); it('marks the snackbar and its action for tests and styling', function () { $html = (string) $this->blade(''); expect($html) ->toMatch('/]*\bdata-toast\b[^>]*aria-live="polite"/') ->toMatch('/]*\bdata-toast-action\b[^>]*x-on:click="act\(\)"/'); });