sarga/tests/Browser/ExampleTest.php

27 lines
621 B
PHP
Raw Normal View History

<?php
namespace Tests\Browser;
use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;
class ExampleTest extends DuskTestCase
{
/**
* A basic browser test example.
*
* @return void
*/
public function testBasicExample()
{
$this->browse(function (Browser $browser) {
$browser->visit('/customer/login')
2019-07-10 08:14:33 +00:00
->type('email', 'john@doe.net')
2019-04-13 06:29:54 +00:00
->type('password', '12345678')
->click('input[type="submit"]')
->screenshot('error');
});
}
}