Commit 270669aa by Qiang Xue

fixed test break.

parent 78e4da8c
...@@ -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('#contact-form input[type=submit]'); $this->guy->click('#contact-form button[type=submit]');
} }
} }
...@@ -16,6 +16,6 @@ class LoginPage extends BasePage ...@@ -16,6 +16,6 @@ class LoginPage extends BasePage
{ {
$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-form input[type=submit]'); $this->guy->click('#login-form button[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