From 41685fe8dfd72c541a6f994355a7de39b538c452 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Thu, 13 Feb 2014 19:37:49 -0500 Subject: [PATCH] Fixed test break. --- tests/_pages/ContactPage.php | 2 +- tests/_pages/LoginPage.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/_pages/ContactPage.php b/tests/_pages/ContactPage.php index 05a0146..e1a614f 100644 --- a/tests/_pages/ContactPage.php +++ b/tests/_pages/ContactPage.php @@ -17,6 +17,6 @@ class ContactPage extends BasePage $inputType = $field === 'body' ? 'textarea' : 'input'; $this->guy->fillField($inputType . '[name="ContactForm[' . $field . ']"]', $value); } - $this->guy->click('Submit', '#contact-form'); + $this->guy->click('#contact-form input[type=submit]'); } } diff --git a/tests/_pages/LoginPage.php b/tests/_pages/LoginPage.php index f5ace25..78062a5 100644 --- a/tests/_pages/LoginPage.php +++ b/tests/_pages/LoginPage.php @@ -14,8 +14,8 @@ class LoginPage extends BasePage */ public function login($username, $password) { - $this->guy->fillField('input[name="LoginForm[username]"]',$username); - $this->guy->fillField('input[name="LoginForm[password]"]',$password); - $this->guy->click('Login','#login-form'); + $this->guy->fillField('input[name="LoginForm[username]"]', $username); + $this->guy->fillField('input[name="LoginForm[password]"]', $password); + $this->guy->click('#login-form input[type=submit]'); } }