coolify/tests/Feature/ResourceLimitsIconTest.php
Andras Bacsai 8ae56587d5
feat(ui): Shadow UI redesign, domain management, and DNS autoconfigure (#11119)
Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
2026-08-03 23:11:54 +02:00

21 lines
929 B
PHP

<?php
/**
* Resource Limits nav must use the reicon "cpu" glyph (not subscription card).
*/
test('application and database resource limits menus use the cpu icon', function () {
$application = file_get_contents(resource_path('views/livewire/project/application/configuration.blade.php'));
$database = file_get_contents(resource_path('views/livewire/project/database/configuration.blade.php'));
$reicon = file_get_contents(resource_path('views/components/reicon.blade.php'));
expect($application)
->toMatch("/'Resource Limits'\\s*=>\\s*'cpu'/")
->not->toMatch("/'Resource Limits'\\s*=>\\s*'subscription'/");
expect($database)
->toMatch("/'label'\\s*=>\\s*'Resource Limits'[\\s\\S]{0,120}?'icon'\\s*=>\\s*'cpu'/")
->not->toMatch("/'label'\\s*=>\\s*'Resource Limits'[\\s\\S]{0,120}?'icon'\\s*=>\\s*'subscription'/");
expect($reicon)
->toContain("'cpu' =>");
});