mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-21 00:24:36 +00:00
feat(ui): Shadow UI redesign, domain management, and DNS autoconfigure (#11119)
Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
This commit is contained in:
co-authored by
ShadowArcanist
parent
0b843bb07c
commit
8ae56587d5
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Settings title sits above the workspace; sidebar is below it. Title shell and
|
||||
* workspace share max-w-[1180px] so their left edges align.
|
||||
*/
|
||||
test('settings navbar and workspace share the same max width shell', function () {
|
||||
$navbar = file_get_contents(resource_path('views/components/settings/navbar.blade.php'));
|
||||
|
||||
expect($navbar)
|
||||
->toContain('max-w-[1180px]')
|
||||
->toContain("title' => 'Settings'")
|
||||
->toContain(':titleOnDesktop="false"');
|
||||
|
||||
$pages = [
|
||||
resource_path('views/livewire/settings/index.blade.php'),
|
||||
resource_path('views/livewire/settings/advanced.blade.php'),
|
||||
resource_path('views/livewire/settings/updates.blade.php'),
|
||||
resource_path('views/livewire/settings-oauth.blade.php'),
|
||||
];
|
||||
|
||||
foreach ($pages as $path) {
|
||||
$blade = file_get_contents($path);
|
||||
|
||||
expect($blade)
|
||||
->toContain('<x-settings.navbar')
|
||||
->toContain('max-w-[1180px]')
|
||||
->toContain('xl:grid-cols-[210px_minmax(0,1fr)]')
|
||||
->not->toContain('x-settings.page-header');
|
||||
}
|
||||
});
|
||||
|
||||
test('dashboard navbar hides family titles at lg by default', function () {
|
||||
$dashboardNavbar = file_get_contents(resource_path('views/components/dashboard/navbar.blade.php'));
|
||||
$settingsNavbar = file_get_contents(resource_path('views/components/settings/navbar.blade.php'));
|
||||
|
||||
expect($dashboardNavbar)
|
||||
->toContain("'titleOnDesktop' => false")
|
||||
->toContain("'lg:hidden' => ! \$titleOnDesktop");
|
||||
|
||||
expect($settingsNavbar)
|
||||
->toContain(':titleOnDesktop="false"');
|
||||
});
|
||||
Reference in New Issue
Block a user