From 492ef9a9882f6bbc1738e5154106341874e29a80 Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Sat, 13 Apr 2019 11:59:54 +0530 Subject: [PATCH] added test for dusk customer login --- tests/Browser/ExampleTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Browser/ExampleTest.php b/tests/Browser/ExampleTest.php index 2c80ac76c..d03a523f1 100644 --- a/tests/Browser/ExampleTest.php +++ b/tests/Browser/ExampleTest.php @@ -17,7 +17,10 @@ class ExampleTest extends DuskTestCase { $this->browse(function (Browser $browser) { $browser->visit('/customer/login') - ->assertSee('login'); + ->type('email', 'prashant@webkul.com') + ->type('password', '12345678') + ->click('input[type="submit"]') + ->screenshot('error'); }); } }