fix(storages): keep volume actions on one line

This commit is contained in:
Andras Bacsai
2026-09-16 14:13:44 +02:00
parent 34b3318639
commit 011d8bdb2a
3 changed files with 18 additions and 6 deletions
@@ -249,6 +249,18 @@ it('renders volume actions and PR suffix controls as valid markup', function ()
->and($xpath->query("//template[@x-teleport='body']/*[@role='listbox']"))->toHaveCount(2);
});
it('keeps editable volume actions on one line', function () {
$view = file_get_contents(resource_path('views/livewire/project/shared/storages/all.blade.php'));
$css = file_get_contents(resource_path('css/app.css'));
expect($view)
->toMatch('/volumes-col-actions volumes-cell-actions flex flex-nowrap items-center justify-end gap-1\.5[\s\S]*?Update[\s\S]*?Backup[\s\S]*?Delete/');
expect($css)
->toMatch('/\.volumes-table-grid\s*\{[^}]*grid-template-columns:[^;}]*15rem;/')
->toMatch('/\.volumes-table-grid-with-pr\s*\{[^}]*grid-template-columns:[^;}]*15rem;/');
});
it('declares explicit authorization on the changed storage controls', function () {
$view = file_get_contents(resource_path('views/livewire/project/shared/storages/all.blade.php'));