mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
Link primary and additional destination server cards to their server pages via wire:navigate, and cover the markup in a feature test.
20 lines
881 B
PHP
20 lines
881 B
PHP
<?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"');
|
|
});
|
|
|
|
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');
|
|
});
|