diff --git a/resources/views/livewire/project/service/resource-card.blade.php b/resources/views/livewire/project/service/resource-card.blade.php
index be026313a..fe976180d 100644
--- a/resources/views/livewire/project/service/resource-card.blade.php
+++ b/resources/views/livewire/project/service/resource-card.blade.php
@@ -38,13 +38,6 @@
@endif
- @if ($isApplication && $resource->fqdn)
-
-
- {{ $resource->fqdn }}
-
-
- @endif
@@ -91,9 +84,6 @@
{{ $resourceName }}
- @if ($isApplication && $resource->fqdn)
-
{{ $resource->fqdn }}
- @endif
diff --git a/tests/Feature/ServiceComposeResourcesViewSwitcherTest.php b/tests/Feature/ServiceComposeResourcesViewSwitcherTest.php
index c859edc37..6bcf25af1 100644
--- a/tests/Feature/ServiceComposeResourcesViewSwitcherTest.php
+++ b/tests/Feature/ServiceComposeResourcesViewSwitcherTest.php
@@ -54,3 +54,10 @@ it('distinguishes domain management from resource settings', function () {
->toContain('title="Resource settings" aria-label="Resource settings"')
->not->toContain('title="Edit domains" aria-label="Edit domains"');
});
+
+it('does not display application domains on compose resource cards', function () {
+ $resourceCard = file_get_contents(resource_path('views/livewire/project/service/resource-card.blade.php'));
+
+ expect($resourceCard)
+ ->not->toContain('{{ $resource->fqdn }}');
+});