toContain('wire:loading.attr="disabled"')
->toContain('wire:target="submit,resetProxyConfiguration"')
->toContain('wire:loading.class="pointer-events-none opacity-50"')
->toContain('Updating proxy configuration')
->toContain('aria-live="polite"');
});
it('loads only the compose file from the frontend and shows the shared loading indicator', function () {
$page = file_get_contents(resource_path('views/livewire/server/proxy/show.blade.php'));
$proxy = file_get_contents(resource_path('views/livewire/server/proxy.blade.php'));
$component = file_get_contents(app_path('Livewire/Server/Proxy.php'));
expect($page)
->toContain('')
->not->toContain('');
expect($proxy)
->toContain('x-init="$wire.loadProxyConfiguration()"')
->toContain('wire:loading.flex wire:target="loadProxyConfiguration"')
->toContain('');
expect($component)
->not->toContain('$this->loadProxyConfiguration();');
});