sarga/tests/Browser/ExampleTest.php

27 lines
628 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-04-13 06:29:54 +00:00
->type('email', 'prashant@webkul.com')
->type('password', '12345678')
->click('input[type="submit"]')
->screenshot('error');
});
}
}