coolify/tests/Feature/SettingsUpdatesIconTest.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

17 lines
659 B
PHP

<?php
/**
* Instance settings Updates nav must use the reicon "refresh3" glyph.
*/
test('settings updates sidebar uses the refresh3 icon', function () {
$sidebar = file_get_contents(resource_path('views/components/settings/sidebar.blade.php'));
$reicon = file_get_contents(resource_path('views/components/reicon.blade.php'));
expect($sidebar)
->toMatch("/'label'\\s*=>\\s*'Updates'[\\s\\S]{0,200}?'icon'\\s*=>\\s*'refresh3'/")
->not->toMatch("/'label'\\s*=>\\s*'Updates'[\\s\\S]{0,200}?'icon'\\s*=>\\s*'dashboard'/");
expect($reicon)
->toContain("'refresh3' =>")
->toContain('stroke-dasharray="3 3"');
});