diff --git a/tests/Feature/PageResponseTest.php b/tests/Feature/PageResponseTest.php index 2e9d162..460d8db 100644 --- a/tests/Feature/PageResponseTest.php +++ b/tests/Feature/PageResponseTest.php @@ -9,23 +9,28 @@ uses(RefreshDatabase::class); describe('Testing all page response', function () { + it('loads the login page', function () { + $this->withoutVite(); get(route('login'))->assertOk(); }); it('loads the home page for auth user', function () { + $this->withoutVite(); actingAs(User::factory()->create()); get(route('home'))->assertOk(); }); it('loads the product listing page for auth user', function () { + $this->withoutVite(); actingAs(User::factory()->create()); get(route('product.index'))->assertOk(); }); it('loads the product details page for auth user', function () { + $this->withoutVite(); actingAs(User::factory()->create()); $product = Product::factory()->create(); @@ -33,12 +38,14 @@ }); it('loads the user listing page for auth user', function () { + $this->withoutVite(); actingAs(User::factory()->create()); get(route('user.index'))->assertOk(); }); it('loads the user details page for auth user', function () { + $this->withoutVite(); $user = User::factory()->create(); actingAs($user); @@ -47,6 +54,7 @@ }); it('loads the profile page', function () { + $this->withoutVite(); $user = User::factory()->create(); actingAs($user);