fix: tests
Some checks are pending
tests / ci (push) Waiting to run

This commit is contained in:
Benjamin Nussbaum 2025-11-14 19:29:34 +01:00
parent 22a24383b2
commit 7489d85592
2 changed files with 24 additions and 6 deletions

View file

@ -3,6 +3,7 @@
use App\Models\User;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Http;
use Livewire\Livewire;
use Livewire\Volt\Volt;
use Symfony\Component\Yaml\Yaml;
@ -16,6 +17,8 @@ it('can render catalog component', function (): void {
config('app.catalog_url') => Http::response('', 200),
]);
Livewire::withoutLazyLoading();
$component = Volt::test('catalog.index');
$component->assertSee('No plugins available');
@ -54,6 +57,8 @@ it('loads plugins from catalog URL', function (): void {
config('app.catalog_url') => Http::response($yamlContent, 200),
]);
Livewire::withoutLazyLoading();
$component = Volt::test('catalog.index');
$component->assertSee('Test Plugin');
@ -67,6 +72,8 @@ it('shows error when plugin not found', function (): void {
$this->actingAs($user);
Livewire::withoutLazyLoading();
$component = Volt::test('catalog.index');
$component->call('installPlugin', 'non-existent-plugin');
@ -97,6 +104,8 @@ it('shows error when zip_url is missing', function (): void {
$this->actingAs($user);
Livewire::withoutLazyLoading();
$component = Volt::test('catalog.index');
$component->call('installPlugin', 'test-plugin');