mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(logs): start the log copy during the click so it works on iOS
Closes #9408 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5431d4954d
commit
1ff99b0dc8
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Enums\ApplicationDeploymentStatus;
|
||||
use App\Livewire\Project\Application\DeploymentNavbar;
|
||||
use App\Models\Application;
|
||||
use App\Models\ApplicationDeploymentQueue;
|
||||
use App\Models\Environment;
|
||||
@@ -12,7 +11,6 @@ use App\Models\StandaloneDocker;
|
||||
use App\Models\Team;
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Livewire\Livewire;
|
||||
|
||||
uses(RefreshDatabase::class);
|
||||
|
||||
@@ -72,17 +70,3 @@ test('deployment log lines show debug output to a resource team admin whose sess
|
||||
|
||||
expect($lines)->toContain('hidden-debug-line');
|
||||
});
|
||||
|
||||
test('copied deployment logs hide debug output from a member after switching to a team they own', function () {
|
||||
$this->actingAs($this->member);
|
||||
session(['currentTeam' => $this->team]);
|
||||
|
||||
$component = Livewire::test(DeploymentNavbar::class, ['application_deployment_queue' => $this->deployment]);
|
||||
|
||||
session(['currentTeam' => $this->ownTeam]);
|
||||
|
||||
$markdown = $component->instance()->copyLogsToClipboard();
|
||||
|
||||
expect($markdown)->toContain('visible-line')
|
||||
->not->toContain('hidden-debug-line');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user