mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-19 10:23:14 +00:00
feat(project): add icons and improve persistent volume management
Add project icon storage and serving with local/S3 support, prevent deletion of compose-managed volumes, and optimize volume backups. Refine project and backup UI components with consistent styling and coverage.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
it('renders a reusable compact copy button', function () {
|
||||
$html = $this->blade('<x-copy-button value="backup/path.sql" label="Copy backup path" />');
|
||||
|
||||
$html->assertSee('Copy backup path')
|
||||
->assertSee('backup\/path.sql', false)
|
||||
->assertSee('window.copyToClipboard', false)
|
||||
->assertSee('size-6', false);
|
||||
});
|
||||
|
||||
it('uses the reusable copy button for database backup paths', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/project/database/backup-executions.blade.php'));
|
||||
|
||||
expect($view)->toContain('<x-copy-button :value="data_get($execution, \'filename\', \'\')" label="Copy backup path" />');
|
||||
});
|
||||
Reference in New Issue
Block a user