mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
Hash pwd
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
6c1449cf92
commit
83449cc246
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue