diff --git a/tests/Feature/Livewire/DashboardConverterTargetFormatTest.php b/tests/Feature/Livewire/DashboardConverterTargetFormatTest.php new file mode 100644 index 0000000..dc7afe2 --- /dev/null +++ b/tests/Feature/Livewire/DashboardConverterTargetFormatTest.php @@ -0,0 +1,34 @@ +create(); + $file = FileRecord::factory()->for($user)->create(['extension' => 'png']); + + Livewire::actingAs($user) + ->test(DashboardConverter::class) + ->set('currentFileId', $file->id) + ->call('goToFormatStep') + ->call('selectTargetFormat', 'jpg') + ->assertSet('selectedTargetFormat', 'jpg') + ->assertSet('step', 'settings') + ->assertSee('Settings for PNG to JPG'); +})->skip('Implemented in CONV-091'); + +it('rejects an unsupported target format selection', function () { + $user = User::factory()->create(); + $file = FileRecord::factory()->for($user)->create(['extension' => 'png']); + + Livewire::actingAs($user) + ->test(DashboardConverter::class) + ->set('currentFileId', $file->id) + ->call('goToFormatStep') + ->call('selectTargetFormat', 'mp3') + ->assertSet('selectedTargetFormat', null) + ->assertSet('step', 'format') + ->assertSee('This conversion is not supported'); +})->skip('Implemented in CONV-091');