Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera

uno-de-piera/LoginTest.php Secret

Created May 31, 2020
Embed
What would you like to do?
<?php
public function testIsLoginPage()
{
$this->browse(function (Browser $browser) {
$browser->visit('/login')
->assertTitle('Laravel')
->assertSee('Forgot Your Password?')
->clickLink("Forgot Your Password?")
->assertPathIs('/password/reset')
->assertSee('Reset Password');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment