feat(server): add dedicated server creation flow

This commit is contained in:
Andras Bacsai committed 2026-07-08 12:20:56 +02:00
1 parent 18f0f7f6be
commit 7236cb8228
31 files changed
+1158 -352

No files matched your search

+20 -3
View File
@@ -102,9 +102,7 @@ it('creates a Vultr server through the Livewire flow', function () {
], 202),
]);
Livewire::test(ByVultr::class)
->set('selected_token_id', $this->vultrToken->id)
->call('nextStep')
Livewire::test(ByVultr::class, ['selectedTokenUuid' => $this->vultrToken->uuid])
->assertSet('current_step', 2)
->set('server_name', 'test-vultr-server')
->set('selected_region', 'ewr')
@@ -148,3 +146,22 @@ it('requires IPv6 when public IPv4 is disabled', function () {
->call('submit')
->assertHasErrors(['enable_ipv6']);
});
it('uses the shared dropdown UI for advanced Vultr options', function () {
Livewire::test(ByVultr::class)
->set('current_step', 2)
->assertSee('Advanced Vultr options')
->assertSeeHtml('dropdownOpen')
->assertSeeHtml('x-ref="panel"')
->assertSee('Additional SSH Keys (from Vultr)')
->assertSee('Network Configuration')
->assertSee('Cloud-Init Script');
});
it('renders only the full width buy button at the bottom of the Vultr form', function () {
Livewire::test(ByVultr::class)
->set('current_step', 2)
->assertDontSee('wire:click="previousStep"', false)
->assertSeeHtml('class="button w-full"')
->assertSee('Buy & Create Server', false);
});