completed story 1.1 with QA tests and fixes
This commit is contained in:
@@ -10,7 +10,7 @@ test('login screen can be rendered', function () {
|
||||
});
|
||||
|
||||
test('users can authenticate using the login screen', function () {
|
||||
$user = User::factory()->withoutTwoFactor()->create();
|
||||
$user = User::factory()->create();
|
||||
|
||||
$response = $this->post(route('login.store'), [
|
||||
'email' => $user->email,
|
||||
@@ -47,7 +47,7 @@ test('users with two factor enabled are redirected to two factor challenge', fun
|
||||
'confirmPassword' => true,
|
||||
]);
|
||||
|
||||
$user = User::factory()->create();
|
||||
$user = User::factory()->withTwoFactor()->create();
|
||||
|
||||
$response = $this->post(route('login.store'), [
|
||||
'email' => $user->email,
|
||||
@@ -66,4 +66,4 @@ test('users can logout', function () {
|
||||
$response->assertRedirect(route('home'));
|
||||
|
||||
$this->assertGuest();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user