diff --git a/resources/views/livewire/dashboard/dashboard-converter.blade.php b/resources/views/livewire/dashboard/dashboard-converter.blade.php index 2aa8c45..3ebadc9 100644 --- a/resources/views/livewire/dashboard/dashboard-converter.blade.php +++ b/resources/views/livewire/dashboard/dashboard-converter.blade.php @@ -1,4 +1,27 @@
-

Drop your file here

-

PNG, JPG, WEBP and PDF supported in beta

+ + @if ($step === 'upload') +
+
+ + + +
+ +
+

Drop your file here

+

PNG, JPG, WEBP and PDF supported in beta

+
+ + + +

Your files stay private. We delete them after conversion.

+
+ @endif +
diff --git a/tests/Feature/Livewire/DashboardConverterTest.php b/tests/Feature/Livewire/DashboardConverterTest.php index ec43f85..6f8aad8 100644 --- a/tests/Feature/Livewire/DashboardConverterTest.php +++ b/tests/Feature/Livewire/DashboardConverterTest.php @@ -3,7 +3,9 @@ use App\Livewire\Dashboard\DashboardConverter; use Livewire\Livewire; -it('renders dashboard converter component', function () { +it('renders empty upload state', function () { Livewire::test(DashboardConverter::class) - ->assertSee('Drop your file here'); + ->assertSee('Drop your file here') + ->assertSee('PNG, JPG, WEBP and PDF supported in beta') + ->assertSee('Choose file'); });