Add tests for password reset page functionality

This commit is contained in:
Dane Everitt 2018-06-02 16:39:49 -07:00
parent 7a1d73ba9e
commit 92c03d4953
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 92 additions and 3 deletions

View file

@ -15,10 +15,15 @@ class LoginPage extends BasePage
public function elements()
{
return [
'@email' => '#grid-email',
'@username' => '#grid-username',
'@password' => '#grid-password',
'@loginButton' => '#grid-login-button',
'@forgotPassword' => 'a[aria-label="Forgot password"]',
'@submitButton' => 'button.btn.btn-jumbo[type="submit"]',
'@forgotPassword' => 'a[href="/auth/password"][aria-label="Forgot password"]',
'@goToLogin' => 'a[href="/auth/login"][aria-label="Go to login"]',
'@alertSuccess' => 'div[role="alert"].success > span.message',
'@alertDanger' => 'div[role="alert"].danger > span.message',
];
}
}