mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 10:23:30 +00:00
feat(backups): support scheduled backups for application storage targets
Add polymorphic volume backup scheduling for persistent volumes and directories, expose schedule management via API, and reorganize backup configuration and execution views.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
it('uses the simplified database backup execution heading and spacing', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/project/database/backup-executions.blade.php'));
|
||||
|
||||
expect($view)
|
||||
->toContain('<div class="flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center">')
|
||||
->toContain('<h2 class="py-0">Executions</h2>')
|
||||
->not->toContain('Executions <span')
|
||||
->toContain('class="flex flex-col gap-4 pt-2"');
|
||||
});
|
||||
|
||||
it('renders scheduled task executions as selectable status cards with expandable logs', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/project/shared/scheduled-task/executions.blade.php'));
|
||||
|
||||
expect($view)
|
||||
->toContain('<div class="flex flex-col gap-2" wire:poll.5000ms="refreshExecutions"')
|
||||
->toContain('<a wire:click="selectTask({{ data_get($execution, \'id\') }})"')
|
||||
->toContain('border-l-2 transition-colors p-4 cursor-pointer')
|
||||
->toContain("'success' => 'Success'")
|
||||
->toContain("'running' => 'In Progress'")
|
||||
->toContain("'failed' => 'Failed'")
|
||||
->toContain("data_get(\$execution, 'id') == \$selectedKey")
|
||||
->toContain('max-h-[600px] overflow-y-auto')
|
||||
->toContain('No executions found.');
|
||||
});
|
||||
Reference in New Issue
Block a user