fixed the isseu of the guest booking page when logged in
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user