fix(resources): remove empty-domain placeholder from grid
This commit is contained in:
parent
d67d42039a
commit
2bce16e4d4
2 changed files with 9 additions and 2 deletions
|
|
@ -314,8 +314,6 @@ class="truncate text-[13px]! leading-4! font-semibold! text-black dark:text-fg"
|
|||
class="relative z-10 max-w-full self-start truncate text-[11px] text-neutral-500 hover:underline dark:text-fg-dim"
|
||||
:title="displayDomain(item.fqdn)" x-text="displayDomain(item.fqdn)"></a>
|
||||
</template>
|
||||
<span x-show="!item.fqdn"
|
||||
class="text-[11px] text-neutral-400 dark:text-fg-faint">-</span>
|
||||
</div>
|
||||
</article>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -9,3 +9,12 @@
|
|||
->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>');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue