fix(resources): remove empty-domain placeholder from grid

This commit is contained in:
Andras Bacsai
2026-08-31 17:37:10 +02:00
parent d67d42039a
commit 2bce16e4d4
2 changed files with 9 additions and 2 deletions
@@ -9,3 +9,12 @@ test('resource table subtitle shows description only and never falls back to uui
->not->toContain('item.description || item.fqdn || item.uuid')
->not->toContain('item.fqdn || item.uuid');
});
test('resource grid does not show a placeholder when a domain is missing', function () {
$view = file_get_contents(resource_path('views/livewire/project/resource/index.blade.php'));
$gridView = explode('x-show="viewMode === \'grid\'"', $view, 2)[1];
expect($gridView)
->not->toContain('x-show="!item.fqdn"')
->not->toContain('>-</span>');
});