Do not send "enter" key when not needed
Sending the "enter" key is not needed in those input fields that auto save while the user is typing or when the focus is lost (which since version 1.4.0 the Selenium driver for Mink is automatically done after setting the value). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
d311e08f97
commit
38b88422a8
|
@ -82,7 +82,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
|
|||
* @When I search for the user :user
|
||||
*/
|
||||
public function iSearchForTheUser($user) {
|
||||
$this->actor->find(self::contactsMenuSearchInput(), 10)->setValue($user . "\r");
|
||||
$this->actor->find(self::contactsMenuSearchInput(), 10)->setValue($user);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -86,7 +86,7 @@ class SearchContext implements Context, ActorAwareInterface {
|
|||
* @When I search for :query
|
||||
*/
|
||||
public function iSearchFor($query) {
|
||||
$this->actor->find(self::searchBoxInput(), 10)->setValue($query . "\r");
|
||||
$this->actor->find(self::searchBoxInput(), 10)->setValue($query);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -65,7 +65,7 @@ class ThemingAppContext implements Context, ActorAwareInterface {
|
|||
* @When I set the :parameterName parameter in the Theming app to :parameterValue
|
||||
*/
|
||||
public function iSetTheParameterInTheThemingAppTo($parameterName, $parameterValue) {
|
||||
$this->actor->find(self::inputFieldFor($parameterName), 10)->setValue($parameterValue . "\r");
|
||||
$this->actor->find(self::inputFieldFor($parameterName), 10)->setValue($parameterValue);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue