File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 53
53
post (route ('password.email ' ), ['email ' => $ user ->email ]);
54
54
55
55
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 ] ))
57
57
->fill ('password ' , 'password ' )
58
58
->fill ('password_confirmation ' , 'password ' )
59
- ->assertNoConsoleLogs ()
60
- ->assertNoJavaScriptErrors ()
59
+ ->assertValue ('email ' , $ user ->email )
61
60
->press ('@reset-password-button ' )
62
- ->assertUrlIs (route ('home ' ))
63
- ->assertNoConsoleLogs ()
64
- ->assertNoJavaScriptErrors ();
61
+ ->assertUrlIs (route ('login ' ))
62
+ ->assertSee ('Your password has been reset. ' );
65
63
66
64
return true ;
67
65
});
You can’t perform that action at this time.
0 commit comments