Open deshiloh opened 3 months ago
Here my two test
test("Can login super user", function() { $this->seed(); post(route('login'), [ 'email' => 'test1@test.com', 'password' => 'test' ]) ->assertSessionHasNoErrors() ->assertRedirect(route('admin.homepage')) ; }); test("Can login user", function() { $this->seed(); post(route('login'), [ 'email' => 'test2@test.com', 'password' => 'test' ]) ->assertSessionHasNoErrors() ->assertRedirect(route('front.reservation.list')) ; });
When I run them, the second failed. When I run the first and the second separately, it works... How ?
Install fresh laravel app with pestphp, use defaults login scripts.
No response
2.34.5
8.1.25
macOS
What Happened
Here my two test
When I run them, the second failed. When I run the first and the second separately, it works... How ?
How to Reproduce
Install fresh laravel app with pestphp, use defaults login scripts.
Sample Repository
No response
Pest Version
2.34.5
PHP Version
8.1.25
Operation System
macOS
Notes
No response