Files
coolify/tests/Feature/ServiceComposeResourcesViewSwitcherTest.php
T
Andras Bacsai 2291c3fa1c feat(ui): unify team, security, and notification settings layouts
Extract shared settings-layout components and a dedicated team
danger-zone page. Enable modal editing for security resources,
polish OAuth/API-token controls, and align notification and
service configuration UI with the new navigation patterns.
2026-08-05 16:24:31 +02:00

29 lines
1.4 KiB
PHP

<?php
it('provides grid and table views for compose resources without sorting controls', function () {
$configuration = file_get_contents(resource_path('views/livewire/project/service/configuration.blade.php'));
$resourceCard = file_get_contents(resource_path('views/livewire/project/service/resource-card.blade.php'));
expect($configuration)
->toContain("localStorage.getItem('service-compose-resources-view') || 'table'")
->toContain("setViewMode('table')")
->toContain("setViewMode('grid')")
->toContain('aria-label="Table view"')
->toContain('aria-label="Grid view"')
->toContain("localStorage.setItem('service-compose-resources-view', mode)")
->not->toContain('>Sort</button>')
->and($resourceCard)
->toContain("x-show=\"viewMode === 'grid'\"")
->toContain("x-show=\"viewMode === 'table'\"");
});
it('directs compose application domain management to the parent service', function () {
$resourceSettings = file_get_contents(resource_path('views/livewire/project/service/index.blade.php'));
expect($resourceSettings)
->toContain('Manage domains, DNS checks, and redirects on the parent service')
->toContain("route('project.service.domains', \$parameters)")
->toContain('Manage domains')
->not->toContain('<x-forms.domain-chips model="fqdn" label="Domains"');
});