|
18 | 18 | ->fill('email', $user->email)
|
19 | 19 | ->fill('password', 'password')
|
20 | 20 | ->press('Log in')
|
21 |
| - ->assertUrlIs(route('dashboard')); |
| 21 | + ->assertUrlIs(route('dashboard')) |
| 22 | + ->assertNoConsoleLogs() |
| 23 | + ->assertNoJavaScriptErrors(); |
22 | 24 |
|
23 | 25 | $this->assertAuthenticated();
|
24 | 26 | });
|
|
31 | 33 | ->fill('password', 'wrong-password')
|
32 | 34 | ->press('Log in')
|
33 | 35 | ->assertUrlIs(route('login'))
|
34 |
| - ->assertSee('These credentials do not match our records.'); |
| 36 | + ->assertSee('These credentials do not match our records.') |
| 37 | + ->assertNoConsoleLogs() |
| 38 | + ->assertNoJavaScriptErrors(); |
35 | 39 |
|
36 | 40 | $this->assertGuest();
|
37 | 41 | });
|
|
44 | 48 | visit(route('dashboard'))
|
45 | 49 | ->click($user->name)
|
46 | 50 | ->click('Log out')
|
47 |
| - ->assertUrlIs(route('home')); |
| 51 | + ->assertUrlIs(route('home')) |
| 52 | + ->assertNoConsoleLogs() |
| 53 | + ->assertNoJavaScriptErrors(); |
48 | 54 |
|
49 | 55 | $this->assertGuest();
|
50 | 56 | });
|
|
59 | 65 | ->fill('password', 'wrong-password')
|
60 | 66 | ->press('Log in')
|
61 | 67 | ->assertUrlIs(route('login'))
|
62 |
| - ->assertSee('Too many login attempts. Please try again in'); |
| 68 | + ->assertSee('Too many login attempts. Please try again in') |
| 69 | + ->assertNoConsoleLogs() |
| 70 | + ->assertNoJavaScriptErrors(); |
63 | 71 | });
|
64 | 72 |
|
0 commit comments