Merge remote-tracking branch 'origin/main' into next

This commit is contained in:
github-actions[bot]
2026-10-26 17:46:34 +00:00
2 changed files with 21 additions and 4 deletions
@@ -1,6 +1,6 @@
<div class="application-settings-form" x-data x-init="$wire.loadServers">
<div x-data="searchResources()">
@if ($current_step === 'type')
@if ($current_step === 'type')
<div x-data="searchResources()">
<x-application.settings-section title="Choose a resource" flush>
<x-slot:actions>
<button type="button" class="button" :disabled="loading" @click="loadResources">
@@ -634,8 +634,8 @@
}
}
</script>
@endif
</div>
</div>
@endif
@if ($current_step === 'servers')
<x-application.settings-section title="Select a server"
description="Choose the machine that will host this resource." flush>
@@ -131,3 +131,20 @@ test('the postgresql shortcut ignores a server that is not in the server list',
->assertSet('server', null)
->assertSet('current_step', 'type');
});
test('the postgresql image step does not reference the resource search script it does not render', function () {
Livewire::withQueryParams([
'type' => 'postgresql',
'server_id' => $this->server->id,
'destination' => $this->defaultDestination->uuid,
])->test(Select::class)
->assertSet('current_step', 'select-postgresql-type')
->assertDontSeeHtml('searchResources');
});
test('the resource type step renders the resource search script with its binding', function () {
Livewire::test(Select::class)
->assertSet('current_step', 'type')
->assertSeeHtml('x-data="searchResources()"')
->assertSeeHtml('function searchResources()');
});