Files
coolify/tests/Feature/LoadingComponentTest.php
Andras Bacsai 85613b01ba feat(ui): expand server sidebar and extract status summary
Move proxy, sentinel, resources, and terminal into the server sidebar
with nested routes and icons; extract navbar status into a shared
status-summary component; add full-width service links and compact
loading support.
2026-08-05 19:54:48 +02:00

22 lines
871 B
PHP

<?php
it('uses the current neutral loading indicator styles', function () {
$loading = file_get_contents(resource_path('views/components/loading.blade.php'));
expect($loading)
->toContain('gap-2 text-[13px] text-neutral-500 dark:text-fg-dim')
->toContain("'size-3' => \$compact")
->toContain("'size-4' => ! \$compact")
->toContain('stroke="currentColor" stroke-width="2"')
->not->toContain('text-coollabs')
->not->toContain('dark:text-warning');
});
it('shows runtime container loading inside a settings card', function () {
$logs = file_get_contents(resource_path('views/livewire/project/shared/logs.blade.php'));
expect($logs)
->toContain('application-settings-section-body flex min-h-40 w-full items-center justify-center')
->toContain('<x-loading text="Loading containers" />');
});