mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-25 16:26:16 +00:00
18 lines
747 B
PHP
18 lines
747 B
PHP
<?php
|
|
|
|
/**
|
|
* Header version badge should open the matching GitHub release page.
|
|
*/
|
|
test('desktop header version links to the coolify github release for the installed version', function () {
|
|
$layout = file_get_contents(resource_path('views/layouts/app.blade.php'));
|
|
$version = file_get_contents(resource_path('views/components/version.blade.php'));
|
|
|
|
expect($layout)
|
|
->toContain('<x-version')
|
|
->not->toContain("class=\"text-[10.5px] font-medium text-neutral-400 dark:text-fg-faint\">v{{ config('constants.coolify.version') }}</span>");
|
|
|
|
expect($version)
|
|
->toContain("https://github.com/coollabsio/coolify/releases/tag/v{{ config('constants.coolify.version') }}")
|
|
->toContain('target="_blank"');
|
|
});
|