Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-30 01:27:20 +01:00
parent 6c1449cf92
commit 83449cc246

View file

@ -28,10 +28,12 @@ class LoginTest extends DuskTestCase
{ {
$user = User::factory()->superuser()->create([ $user = User::factory()->superuser()->create([
'username' => 'admin', 'username' => 'admin',
'password' => 'password', 'password' => Hash::make('password'),
]); ]);
$this->browse(function (Browser $browser) use ($user) { $this->browse(function (Browser $browser) use ($user) {
$browser->logout();
$browser->visit('/login') $browser->visit('/login')
->type('username', $user->username) ->type('username', $user->username)
->type('password', 'password') ->type('password', 'password')