Skip to content

Commit

Permalink
make dusk work
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper Bottelet committed Oct 4, 2017
1 parent 2edd68a commit 92fc25e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/Browser/LoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class LoginTest extends DuskTestCase
public function testExample()
{
$this->browse(function ($browser) {
$browser->visit('Flarepoint-crm/public/login')
->assertSee('Laravel');
$browser->visit('login')
->assertSee('E-Mail Address');
});
}
}
4 changes: 1 addition & 3 deletions tests/Browser/Pages/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ public function url()
*/
public function assert(Browser $browser)
{
$browser->assertTitleContains('Laravel')
->assertSee('Laravel')
->assertSee('Login')
$browser->assertSee('Login')
->assertSee('E-Mail Address')
->assertInputValue('email', '')
->assertSee('Password')
Expand Down

0 comments on commit 92fc25e

Please sign in to comment.