mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 12:34:24 +00:00
29 lines
704 B
PHP
29 lines
704 B
PHP
<?php
|
|
|
|
namespace Tests\Browser;
|
|
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Laravel\Dusk\Browser;
|
|
use Tests\DuskTestCase;
|
|
|
|
class ExampleTest extends DuskTestCase
|
|
{
|
|
/**
|
|
* A basic browser test example.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testBasicExample()
|
|
{
|
|
$this->browse(function (Browser $browser) {
|
|
$browser->visit('http://localhost:86')
|
|
->pause(500)
|
|
->type('email', 'junkit.mah@bioloop.com.my')
|
|
->type('password', '123456abcabc')
|
|
->click('#sign-in')
|
|
->pause(5000)
|
|
->assertPathIs('/dashboard');
|
|
});
|
|
}
|
|
}
|