2026-08-06 11:18:46 +00:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
test('docker cleanup execution output uses light and dark theme surfaces', function () {
|
|
|
|
|
|
$view = file_get_contents(resource_path('views/livewire/server/docker-cleanup-executions.blade.php'));
|
|
|
|
|
|
|
|
|
|
|
|
expect($view)
|
|
|
|
|
|
->toContain('bg-white text-neutral-700')
|
|
|
|
|
|
->toContain('dark:bg-neutral-950 dark:text-neutral-300');
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
test('docker cleanup executions show a loading state while opening an execution', function () {
|
|
|
|
|
|
$view = file_get_contents(resource_path('views/livewire/server/docker-cleanup-executions.blade.php'));
|
|
|
|
|
|
|
|
|
|
|
|
expect($view)
|
|
|
|
|
|
->toContain('wire:loading.attr="disabled"')
|
|
|
|
|
|
->toContain('wire:target="selectExecution({{ data_get($execution, \'id\') }})"')
|
|
|
|
|
|
->toContain('wire:loading.remove')
|
|
|
|
|
|
->toContain('<x-loading wire:loading');
|
|
|
|
|
|
});
|
2026-08-15 15:59:32 +00:00
|
|
|
|
|
|
|
|
|
|
test('docker cleanup explains application image retention options', function () {
|
|
|
|
|
|
$view = file_get_contents(resource_path('views/livewire/server/docker-cleanup.blade.php'));
|
|
|
|
|
|
|
|
|
|
|
|
expect($view)
|
|
|
|
|
|
->toContain('Choose Keep retained images to follow each application’s Images to keep setting under Rollback.')
|
|
|
|
|
|
->toContain('Delete all old images ignores that setting and keeps only the running image.');
|
|
|
|
|
|
});
|