mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
Update to 6.6
This commit is contained in:
21
tests/Browser/LoginTest.php
Normal file
21
tests/Browser/LoginTest.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Browser;
|
||||
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Laravel\Dusk\Browser;
|
||||
use Tests\DuskTestCase;
|
||||
|
||||
class LoginTest extends DuskTestCase
|
||||
{
|
||||
public function testLogin()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser->visit('/login')
|
||||
->type('email','admin@exvps.ca')
|
||||
->type('password','SuperAdmin')
|
||||
->click('@login-button')
|
||||
->assertPathIs('/admin');
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user