test dusk gh

This commit is contained in:
Andras Bacsai
2024-10-17 21:15:48 +02:00
parent 192677d05a
commit becaf92fd8
6 changed files with 88 additions and 114 deletions

View File

@@ -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');
});
}
}