mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 06:17: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:
1 parent
0b843bb07c
commit
8ae56587d5
497 files changed
+44045
-22630
No files matched your search
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Shared variables family: hide the page H1 on desktop; editor view toggle lives in layer-2 nav.
|
||||
*/
|
||||
test('shared variables pages hide the family title on desktop', function () {
|
||||
$paths = [
|
||||
resource_path('views/livewire/shared-variables/index.blade.php'),
|
||||
resource_path('views/livewire/shared-variables/project/index.blade.php'),
|
||||
resource_path('views/livewire/shared-variables/environment/index.blade.php'),
|
||||
resource_path('views/livewire/shared-variables/server/index.blade.php'),
|
||||
resource_path('views/components/shared-variables/editor.blade.php'),
|
||||
];
|
||||
|
||||
foreach ($paths as $path) {
|
||||
expect(file_get_contents($path))
|
||||
->toContain('section="shared-variables"')
|
||||
->toContain(':titleOnDesktop="false"');
|
||||
}
|
||||
});
|
||||
|
||||
test('shared variables editor places the view toggle next to the tabs', function () {
|
||||
$editor = file_get_contents(resource_path('views/components/shared-variables/editor.blade.php'));
|
||||
|
||||
expect($editor)
|
||||
->toContain('<x-slot:actions>')
|
||||
->toContain('wire:click="switch"')
|
||||
->toContain('Developer view')
|
||||
->toContain('Normal view');
|
||||
|
||||
// No longer nested as a section header action above the variable list.
|
||||
expect($editor)->not->toMatch(
|
||||
'/settings-section[\s\S]{0,200}<x-slot:actions>[\s\S]{0,200}wire:click="switch"/'
|
||||
);
|
||||
});
|
||||
|
||||
test('shared variables table omits resource-only flag columns', function () {
|
||||
$editor = file_get_contents(resource_path('views/components/shared-variables/editor.blade.php'));
|
||||
$show = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/show.blade.php'));
|
||||
$css = file_get_contents(resource_path('css/app.css'));
|
||||
|
||||
// Shared table: Name / Scope / Comment / Multiline only (no Literal, Buildtime, Runtime).
|
||||
expect($editor)
|
||||
->toContain('env-table-grid-shared')
|
||||
->toContain('>Multiline</span>')
|
||||
->not->toContain('>Literal</span>')
|
||||
->not->toContain('>Buildtime</span>')
|
||||
->not->toContain('>Runtime</span>');
|
||||
|
||||
expect($show)
|
||||
->toContain('env-table-grid-shared')
|
||||
->toContain('$isSharedVariable');
|
||||
|
||||
expect($css)->toContain('.env-table-grid-shared');
|
||||
});
|
||||
Reference in new issue
Block a user