fixed all tests

This commit is contained in:
Antonio Ramirez
2016-12-11 21:34:22 +01:00
parent 4588d77129
commit 4c9b9671b5
37 changed files with 214 additions and 135 deletions

View File

@ -20,8 +20,8 @@ class LoginPage extends BasePage
*/
public function login($login, $password)
{
$this->actor->fillField('#login-form-login', $login);
$this->actor->fillField('#login-form-password', $password);
$this->actor->fillField('#loginform-login', $login);
$this->actor->fillField('#loginform-password', $password);
$this->actor->click('Sign in');
}
}

View File

@ -19,7 +19,7 @@ class RecoveryPage extends BasePage
*/
public function recover($email)
{
$this->actor->fillField('#recovery-form-email', $email);
$this->actor->fillField('#recoveryform-email', $email);
$this->actor->click('Continue');
}
}

View File

@ -21,10 +21,10 @@ class RegistrationPage extends BasePage
*/
public function register($email, $username = null, $password = null)
{
$this->actor->fillField('#register-form-email', $email);
$this->actor->fillField('#register-form-username', $username);
$this->actor->fillField('#registrationform-email', $email);
$this->actor->fillField('#registrationform-username', $username);
if ($password !== null) {
$this->actor->fillField('#register-form-password', $password);
$this->actor->fillField('#registrationform-password', $password);
}
$this->actor->click('Sign up');
}

View File

@ -19,7 +19,7 @@ class ResendPage extends BasePage
*/
public function resend($email)
{
$this->actor->fillField('#resend-form-email', $email);
$this->actor->fillField('#resendform-email', $email);
$this->actor->click('Continue');
}
}

View File

@ -22,10 +22,10 @@ class SettingsPage extends BasePage
*/
public function update($email, $username, $currentPassword, $password = null)
{
$this->actor->fillField('#settings-form-email', $email);
$this->actor->fillField('#settings-form-username', $username);
$this->actor->fillField('#settings-form-new_password', $password);
$this->actor->fillField('#settings-form-current_password', $currentPassword);
$this->actor->fillField('#settingsform-email', $email);
$this->actor->fillField('#settingsform-username', $username);
$this->actor->fillField('#settingsform-new_password', $password);
$this->actor->fillField('#settingsform-current_password', $currentPassword);
$this->actor->click('Save');
}
}