ソースを参照

fixed test break.

Qiang Xue 12 年 前
コミット
dd0a8defbf
2 ファイル変更2 行追加2 行削除
  1. 1 1
      tests/_pages/ContactPage.php
  2. 1 1
      tests/_pages/LoginPage.php

+ 1 - 1
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('#contact-form input[type=submit]');
+		$this->guy->click('#contact-form button[type=submit]');
 	}
 }

+ 1 - 1
tests/_pages/LoginPage.php

@@ -16,6 +16,6 @@ class LoginPage extends BasePage
 	{
 		$this->guy->fillField('input[name="LoginForm[username]"]', $username);
 		$this->guy->fillField('input[name="LoginForm[password]"]', $password);
-		$this->guy->click('#login-form input[type=submit]');
+		$this->guy->click('#login-form button[type=submit]');
 	}
 }