toContain('class="flex items-end gap-3"') ->toContain('toContain('toContain('label="Use as a dedicated build server"') ->toContain("['value' => false, 'label' => 'No']") ->toContain("['value' => true, 'label' => 'Yes']") ->not->toContain('toContain('helper="Build servers compile applications but do not host deployments. Enabling this makes the server build-only."'); }); test('server creation places the IP address and private key before optional details', function () { $view = file_get_contents(resource_path('views/livewire/server/new/by-ip.blade.php')); expect($view) ->toContain('class="mb-5"') ->and(strpos($view, 'id="ip"'))->toBeLessThan(strpos($view, 'id="private_key_id"')) ->and(strpos($view, 'id="private_key_id"'))->toBeLessThan(strpos($view, 'id="name"')); });