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

18 lines
658 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/layout.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"');
});