🛠️ Add services index and landing page components with dynamic links and new Polish translations

This commit is contained in:
HolgerHatGarKeineNode
2025-12-07 00:01:15 +01:00
parent bc700a1f2c
commit aef4deedd6
25 changed files with 2427 additions and 878 deletions

View File

@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
use App\Enums\SelfHostedServiceType;
use App\Models\SelfHostedService;
use App\Models\User;
use Livewire\Volt\Volt;
it('creates a self hosted service', function () {
$user = User::factory()->create();
$component = Volt::test('services.create')
->actingAs($user)
->set('name', 'My Node')
->set('type', SelfHostedServiceType::Mempool->value)
->set('url_clearnet', 'https://example.com')
->set('contact_url', 'https://contact.example.com')
->call('save');
expect(SelfHostedService::where('name', 'My Node')->exists())->toBeTrue();
});