mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-18 16:23:13 +00:00
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.
17 lines
663 B
PHP
17 lines
663 B
PHP
<?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" />');
|
|
});
|