test dusk gh
This commit is contained in:
@@ -13,18 +13,20 @@ class LoginTest extends DuskTestCase
|
||||
* Login with the test user and assert that the user is redirected to the dashboard.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function testLogin()
|
||||
{
|
||||
$email = config('testing.dusk_test_email');
|
||||
$password = config('testing.dusk_test_password');
|
||||
$email = 'test@example.com';
|
||||
$password = 'password';
|
||||
$this->browse(function (Browser $browser) use ($password, $email) {
|
||||
$browser->visit('/login')
|
||||
->type('email', $email)
|
||||
->type('password', $password)
|
||||
->press('Login')
|
||||
->assertPathIs('/');
|
||||
->assertPathIs('/')
|
||||
->screenshot('login');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user