mirror of
https://github.com/coollabsio/coolify.git
synced 2026-08-28 10:05:25 -05:00
18 lines
659 B
PHP
18 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"');
|
|
});
|