diff --git a/resources/views/livewire/dashboard/dashboard-converter.blade.php b/resources/views/livewire/dashboard/dashboard-converter.blade.php index 6e63978..c793c18 100644 --- a/resources/views/livewire/dashboard/dashboard-converter.blade.php +++ b/resources/views/livewire/dashboard/dashboard-converter.blade.php @@ -153,14 +153,14 @@ class="flex items-start gap-3 rounded-[var(--ca-radius-md)] border border-[var(- ← Back - @include('livewire.dashboard.dashboard-converter.partials.dynamic-options-form') - -
+

Settings for {{ strtoupper($file->extension) }} to {{ strtoupper($selectedTargetFormat) }}

-

Conversion settings will be added in Phase 8.

+

Adjust the conversion options below.

+ + @include('livewire.dashboard.dashboard-converter.partials.dynamic-options-form')
@endif diff --git a/tests/Feature/Livewire/DashboardConverterSettingsStepTest.php b/tests/Feature/Livewire/DashboardConverterSettingsStepTest.php index 76a1d9e..a3b7a9f 100644 --- a/tests/Feature/Livewire/DashboardConverterSettingsStepTest.php +++ b/tests/Feature/Livewire/DashboardConverterSettingsStepTest.php @@ -85,6 +85,26 @@ ->assertSee('Background color'); }); +it('renders the png to jpg settings form', function () { + $user = User::factory()->create(); + $file = FileRecord::factory()->for($user)->create([ + 'extension' => 'png', + 'mime_type' => 'image/png', + ]); + + Livewire::actingAs($user) + ->test(DashboardConverter::class) + ->set('currentFileId', $file->id) + ->call('selectTargetFormat', 'jpg') + ->assertSet('step', 'settings') + ->assertSee('Settings for PNG to JPG') + ->assertSee('Quality') + ->assertSee('Resize') + ->assertSee('Background color') + ->assertSee('Remove metadata') + ->assertDontSee('Conversion settings will be added in Phase 8'); +}); + it('initializes default options from the converter schema', function () { $user = User::factory()->create(); $file = FileRecord::factory()->for($user)->create(['extension' => 'png']);