diff --git a/resources/views/livewire/project/application/domains.blade.php b/resources/views/livewire/project/application/domains.blade.php index b1a35cb21..4ad08944e 100644 --- a/resources/views/livewire/project/application/domains.blade.php +++ b/resources/views/livewire/project/application/domains.blade.php @@ -49,7 +49,7 @@ }" @open-edit-domain.window="openEditDomain($event.detail.index, $event.detail.url, $event.detail.service)" @edit-domain-saved.window="closeEditDomain()"> - + @can('update', $application) @@ -78,6 +78,10 @@ @endcannot +

+ {{ $helperText }} +

+
{{-- Toolbar --}} diff --git a/tests/Feature/ApplicationDomainsTest.php b/tests/Feature/ApplicationDomainsTest.php index 224f9c545..2c4c2c679 100644 --- a/tests/Feature/ApplicationDomainsTest.php +++ b/tests/Feature/ApplicationDomainsTest.php @@ -1263,6 +1263,14 @@ it('uses the compact service domains layout for compose applications', function ->not->toContain('title="No domains for this service"'); }); +it('shows domain guidance in the application domains section', function () { + $view = file_get_contents(resource_path('views/livewire/project/application/domains.blade.php')); + + expect($view) + ->toContain('

') + ->toContain('{{ $helperText }}'); +}); + it('does not render a last checked column in the domains table', function () { $view = file_get_contents(resource_path('views/livewire/project/application/domains.blade.php')); $row = file_get_contents(resource_path('views/livewire/project/application/partials/domain-row.blade.php'));