added set free/paid consultation to the quick approve

This commit is contained in:
Naser Mansour
2026-01-09 19:56:49 +02:00
parent c1cc24c78d
commit 0dfb2a8759
3 changed files with 94 additions and 11 deletions
@@ -205,7 +205,11 @@ test('quick approve from list works', function () {
$this->actingAs($admin);
Volt::test('admin.bookings.pending')
->call('quickApprove', $consultation->id)
->call('openApproveModal', $consultation->id)
->assertSet('showApproveModal', true)
->assertSet('approvingBookingId', $consultation->id)
->set('consultationType', 'free')
->call('quickApprove')
->assertHasNoErrors();
expect($consultation->fresh())
@@ -83,7 +83,11 @@ test('admin can quick approve guest booking from pending list', function () {
$this->actingAs($admin);
Volt::test('admin.bookings.pending')
->call('quickApprove', $consultation->id)
->call('openApproveModal', $consultation->id)
->assertSet('showApproveModal', true)
->assertSet('approvingBookingId', $consultation->id)
->set('consultationType', 'free')
->call('quickApprove')
->assertHasNoErrors();
expect($consultation->fresh()->status)->toBe(ConsultationStatus::Approved);