mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-25 17:01:49 -04:00
feat(ui): polish env editor, error buttons, and modal layout
This commit is contained in:
@@ -149,3 +149,16 @@ test('environment variable toolbar does not use blade directives inside componen
|
||||
->not->toMatch('/<x-table\.toolbar[^>]*@if/')
|
||||
->toContain('aria-busy="{{ ! $readyToLoad ? \'true\' : \'false\' }}"');
|
||||
});
|
||||
|
||||
test('environment variable editor places delete left and update actions right', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/show.blade.php'));
|
||||
|
||||
expect($view)
|
||||
->toContain('class="flex flex-wrap items-center justify-between gap-2 border-t')
|
||||
->toMatch('/data-environment-variable-delete-action[\s\S]+buttonTitle="Delete"[\s\S]+data-environment-variable-update-actions[\s\S]+Lock[\s\S]+Update variable/')
|
||||
->toContain('@environment-variable-updated.window="if ($event.detail.envId === @js($env->id)) modalOpen = false"')
|
||||
->toContain('<fieldset disabled wire:dirty.attr.remove="disabled">')
|
||||
->toContain('type="submit" isHighlighted wire:target="submit"')
|
||||
->toContain('wire:dirty.attr.remove="disabled"')
|
||||
->not->toContain('@click="modalOpen = false"');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user