Files
coolify/tests/Feature/EmptyStateBackgroundTest.php
Andras Bacsai 5de6f97256 feat(ui): unify resource nav sidebars and polish project layouts
Extract application/database/service configuration sidebars and
unified headings; improve clone-to-environment, embedded deployments,
storage actions, OAuth icons, terminal, and shared form components.
2026-08-05 17:56:59 +02:00

22 lines
839 B
PHP

<?php
use Illuminate\Support\Facades\Blade;
it('uses the Coolify base background for all empty states', function () {
$html = Blade::render('<x-empty title="Nothing found" />');
$css = file_get_contents(resource_path('css/app.css'));
expect($html)
->toContain('empty-state')
->not->toContain('bg-neutral-50')
->not->toContain('dark:bg-white/[0.02]')
->and($css)
->toContain('.application-settings-section-body:has(> .empty-state:only-child)')
->toContain('.application-settings-section-body.is-flush:has(> .empty-state:only-child)')
->toContain('padding: 1rem;')
->toContain('.empty-state')
->toContain('background: var(--coollabs-base);')
->toContain('.loading-state-card')
->toContain('border: 1px dashed var(--coollabs-line);');
});