Merge branch 'next' into global-password-policy

This commit is contained in:
Andras Bacsai
2024-10-29 10:02:58 +01:00
committed by GitHub
11 changed files with 125 additions and 69 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class DuskServiceProvider extends ServiceProvider
{
/**
* Register Dusk's browser macros.
*/
public function boot(): void
{
\Laravel\Dusk\Browser::macro('loginWithRootUser', function () {
return $this->visit('/login')
->type('email', 'test@example.com')
->type('password', 'password')
->press('Login');
});
}
}