mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 04:23:34 +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.
20 lines
850 B
PHP
20 lines
850 B
PHP
<?php
|
|
|
|
test('settings header navigation is replaced by the settings sidebar', function () {
|
|
$path = resource_path('views/components/dashboard/navbar.blade.php');
|
|
$contents = file_get_contents($path);
|
|
|
|
expect($contents)
|
|
->toContain("['label' => 'General', 'route' => 'settings.index', 'active' => request()->routeIs('settings.*')]")
|
|
->not->toContain("['label' => 'Email', 'route' => 'settings.email'");
|
|
});
|
|
|
|
test('dashboard navbar keeps the original side-by-side tab and actions layout', function () {
|
|
$path = resource_path('views/components/dashboard/navbar.blade.php');
|
|
$contents = file_get_contents($path);
|
|
|
|
expect($contents)
|
|
->toContain('flex w-full flex-col gap-2 sm:flex-row sm:items-center sm:justify-between')
|
|
->toContain('flex min-w-0 w-full items-center gap-0.5 overflow-x-auto');
|
|
});
|