mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 10:23:30 +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,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Programmatic confirmation modals must not leave empty layout rows.
|
||||
*/
|
||||
test('modal confirmation roots are inline so hidden triggers do not stretch full width', function () {
|
||||
$modal = file_get_contents(resource_path('views/components/modal-confirmation.blade.php'));
|
||||
|
||||
expect($modal)
|
||||
->toContain("'relative h-auto max-w-full'")
|
||||
->toContain("'inline-flex w-auto' => ! \$buttonFullWidth")
|
||||
->toContain("'flex w-full' => \$buttonFullWidth")
|
||||
->not->toContain("'relative h-auto'");
|
||||
});
|
||||
|
||||
test('server mobile proxy confirmations sit inside a display-none host', function () {
|
||||
$navbar = file_get_contents(resource_path('views/livewire/server/navbar.blade.php'));
|
||||
|
||||
expect($navbar)
|
||||
->toContain('server-mobile-restart-proxy-trigger')
|
||||
->toContain('server-mobile-stop-proxy-trigger')
|
||||
->toMatch('/class="hidden"[^>]*>\s*<x-modal-confirmation title="Confirm Proxy Restart/');
|
||||
});
|
||||
|
||||
test('application database and service programmatic modals are layout-hidden', function () {
|
||||
foreach ([
|
||||
resource_path('views/livewire/project/application/heading.blade.php'),
|
||||
resource_path('views/livewire/project/database/heading.blade.php'),
|
||||
resource_path('views/livewire/project/service/heading.blade.php'),
|
||||
] as $path) {
|
||||
expect(file_get_contents($path))
|
||||
->toContain('class="hidden" aria-hidden="true"')
|
||||
->toContain('<x-slot:trigger>');
|
||||
}
|
||||
});
|
||||
|
||||
test('slide-over event shells use display contents', function () {
|
||||
expect(file_get_contents(resource_path('views/components/slide-over.blade.php')))
|
||||
->toContain("'class' => 'contents'");
|
||||
});
|
||||
|
||||
test('process dialog event shells use display contents', function () {
|
||||
expect(file_get_contents(resource_path('views/components/process-dialog.blade.php')))
|
||||
->toContain("'class' => 'contents'");
|
||||
});
|
||||
Reference in New Issue
Block a user