mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
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.
18 lines
658 B
PHP
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"');
|
|
});
|