Skip to content

Commit 3ff1deb

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent ad9971e commit 3ff1deb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/Browser/Auth/PasswordResetTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,13 @@
5353
post(route('password.email'), ['email' => $user->email]);
5454

5555
Notification::assertSentTo($user, ResetPassword::class, function ($notification) use ($user) {
56-
visit(route('password.reset', $notification->token))
56+
visit(route('password.reset', ['token' => $notification->token, 'email' => $user->email]))
5757
->fill('password', 'password')
5858
->fill('password_confirmation', 'password')
59-
->assertNoConsoleLogs()
60-
->assertNoJavaScriptErrors()
59+
->assertValue('email', $user->email)
6160
->press('@reset-password-button')
62-
->assertUrlIs(route('home'))
63-
->assertNoConsoleLogs()
64-
->assertNoJavaScriptErrors();
61+
->assertUrlIs(route('login'))
62+
->assertSee('Your password has been reset.');
6563

6664
return true;
6765
});

0 commit comments

Comments
 (0)