Files
coolify/tests/Feature/ResourceLimitsCpuDocsHeaderTest.php
Andras Bacsai a7a06aa6c8 feat(ui): polish domains, storage, env vars and resource nav
Improve project resource UIs: sort domains by DNS failure, stop re-adding www pairs on refresh, lazy-load storage tabs with counts, tighten env-var tables, keep application tabs active across Livewire polls, unify database type labels, and update related CSS/JS and tests.
2026-08-05 13:50:11 +02:00

17 lines
653 B
PHP

<?php
/**
* Docker CPU constraints docs link belongs in the CPU section header as a button.
*/
test('resource limits cpu docs link is a header action button', function () {
$view = file_get_contents(resource_path('views/livewire/project/shared/resource-limits.blade.php'));
expect($view)
->toContain('<x-slot:actions>')
->toContain('Docker CPU constraints')
->toContain('https://docs.docker.com/engine/containers/resource_constraints/#cpu')
->toContain('class="button"')
->toContain('name="external-link"')
->not->toContain('mt-4 inline-flex items-center gap-1 text-xs text-neutral-500');
});