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

@ -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');
}