feat(ui): polish env editor, error buttons, and modal layout

This commit is contained in:
Andras Bacsai
2026-09-08 11:49:02 +02:00
parent abc701ac65
commit 4a3dc11958
28 changed files with 256 additions and 103 deletions
@@ -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"');
});