fixed the isseu of the guest booking page when logged in

This commit is contained in:
Naser Mansour
2026-01-08 19:53:36 +02:00
parent c7f4e53246
commit 861266204e
4 changed files with 68 additions and 19 deletions
+5 -2
View File
@@ -19,12 +19,15 @@ test('guest can view booking page', function () {
->assertSee(__('booking.request_consultation'));
});
test('logged in user is redirected to client booking', function () {
test('logged in user sees message to book from dashboard', function () {
$user = User::factory()->client()->create();
$this->actingAs($user)
->get(route('booking'))
->assertRedirect(route('client.consultations.book'));
->assertOk()
->assertSee(__('booking.logged_in_title'))
->assertSee(__('booking.logged_in_message'))
->assertSee(__('booking.go_to_dashboard'));
});
test('guest booking page shows calendar', function () {