toContain('public function saveCompose($raw)') ->toContain("\$this->dispatch('compose-save-finished')"); }); it('does not show a saving notification for compose changes', function () { $component = file_get_contents(app_path('Livewire/Project/Service/EditCompose.php')); expect($component)->not->toContain("\$this->dispatch('info', 'Saving new docker compose...')"); }); it('keeps the saving state as an Alpine button binding', function () { $html = Blade::render('Save changes'); expect($html)->toContain('x-bind:disabled="saving"'); });