Commit 78e4da8c by Qiang Xue

Fixed test break.

parent e6a353f9
...@@ -17,6 +17,6 @@ class ContactPage extends BasePage ...@@ -17,6 +17,6 @@ class ContactPage extends BasePage
$inputType = $field === 'body' ? 'textarea' : 'input'; $inputType = $field === 'body' ? 'textarea' : 'input';
$this->guy->fillField($inputType . '[name="ContactForm[' . $field . ']"]', $value); $this->guy->fillField($inputType . '[name="ContactForm[' . $field . ']"]', $value);
} }
$this->guy->click('Submit', '#contact-form'); $this->guy->click('#contact-form input[type=submit]');
} }
} }
...@@ -14,8 +14,8 @@ class LoginPage extends BasePage ...@@ -14,8 +14,8 @@ class LoginPage extends BasePage
*/ */
public function login($username, $password) public function login($username, $password)
{ {
$this->guy->fillField('input[name="LoginForm[username]"]',$username); $this->guy->fillField('input[name="LoginForm[username]"]', $username);
$this->guy->fillField('input[name="LoginForm[password]"]',$password); $this->guy->fillField('input[name="LoginForm[password]"]', $password);
$this->guy->click('Login','#login-form'); $this->guy->click('#login-form input[type=submit]');
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment