Skip to content

Commit

Permalink
Ignoring vite during these tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amitavroy committed Dec 5, 2024
1 parent 3263e4d commit 2a2cdff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Feature/PageResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,43 @@
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();

get(route('product.show', ['product' => $product]))->assertOk();
});

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);
Expand All @@ -47,6 +54,7 @@
});

it('loads the profile page', function () {
$this->withoutVite();
$user = User::factory()->create();

actingAs($user);
Expand Down

0 comments on commit 2a2cdff

Please sign in to comment.