Skip to content

Commit e23528a

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

File tree

5 files changed

+24
-7
lines changed

5 files changed

+24
-7
lines changed

VerificationNotificationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php

tests/Browser/Auth/AuthenticationTest.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
->fill('email', $user->email)
1919
->fill('password', 'password')
2020
->press('Log in')
21-
->assertUrlIs(route('dashboard'));
21+
->assertUrlIs(route('dashboard'))
22+
->assertNoConsoleLogs()
23+
->assertNoJavaScriptErrors();
2224

2325
$this->assertAuthenticated();
2426
});
@@ -31,7 +33,9 @@
3133
->fill('password', 'wrong-password')
3234
->press('Log in')
3335
->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();
3539

3640
$this->assertGuest();
3741
});
@@ -44,7 +48,9 @@
4448
visit(route('dashboard'))
4549
->click($user->name)
4650
->click('Log out')
47-
->assertUrlIs(route('home'));
51+
->assertUrlIs(route('home'))
52+
->assertNoConsoleLogs()
53+
->assertNoJavaScriptErrors();
4854

4955
$this->assertGuest();
5056
});
@@ -59,6 +65,8 @@
5965
->fill('password', 'wrong-password')
6066
->press('Log in')
6167
->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();
6371
});
6472

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php

tests/Browser/Auth/RegistrationTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
->fill('password', 'password')
1818
->fill('password_confirmation', 'password')
1919
->press('Create account')
20-
->assertPathEndsWith('/dashboard');
20+
->assertPathEndsWith('/dashboard')
21+
->assertNoConsoleLogs()
22+
->assertNoJavaScriptErrors();
2123

2224
$this->assertAuthenticated();
2325
});
@@ -34,7 +36,9 @@
3436
->fill('password', 'password')
3537
->fill('password_confirmation', 'password')
3638
->press('Create account')
37-
->assertSee('The email has already been taken.');
39+
->assertSee('The email has already been taken.')
40+
->assertNoConsoleLogs()
41+
->assertNoJavaScriptErrors();
3842

3943
$this->assertGuest();
4044
});
@@ -46,7 +50,9 @@
4650
->fill('password', 'password')
4751
->fill('password_confirmation', 'secret')
4852
->press('Create account')
49-
->assertSee('The password field confirmation does not match.');
53+
->assertSee('The password field confirmation does not match.')
54+
->assertNoConsoleLogs()
55+
->assertNoJavaScriptErrors();
5056

5157
$this->assertGuest();
5258
});

0 commit comments

Comments
 (0)