2026-08-07 11:02:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
it('uses the shared status summary in the primary application server card', function () {
|
|
|
|
|
$view = file_get_contents(resource_path('views/livewire/project/shared/destination.blade.php'));
|
|
|
|
|
$applicationSection = str($view)->before('@else')->value();
|
|
|
|
|
|
|
|
|
|
expect($applicationSection)
|
|
|
|
|
->toContain('<x-status-summary :status="$resource->status" />')
|
|
|
|
|
->not->toContain('<x-status :resource="$resource"');
|
|
|
|
|
});
|
2026-08-07 12:43:04 +00:00
|
|
|
|
|
|
|
|
it('links each configured server card to its server page', function () {
|
|
|
|
|
$view = file_get_contents(resource_path('views/livewire/project/shared/destination.blade.php'));
|
|
|
|
|
|
|
|
|
|
expect($view)
|
|
|
|
|
->toContain("route('server.show', ['server_uuid' => data_get(\$resource, 'destination.server.uuid')])")
|
|
|
|
|
->toContain("route('server.show', ['server_uuid' => data_get(\$destination, 'server.uuid')])")
|
|
|
|
|
->toContain('Open server');
|
|
|
|
|
});
|