Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2021-03-06 16:45:25 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2021-04-16 21:00:15 +0300
commit38b88422a807c9ef0b57879aa189e3329c1258d6 (patch)
treed7a3d63278bef271652b30e344c83c8e07b67608 /tests
parentd311e08f9783dffd04289301b5770661d77eebfe (diff)
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/bootstrap/ContactsMenuContext.php2
-rw-r--r--tests/acceptance/features/bootstrap/SearchContext.php2
-rw-r--r--tests/acceptance/features/bootstrap/ThemingAppContext.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/acceptance/features/bootstrap/ContactsMenuContext.php b/tests/acceptance/features/bootstrap/ContactsMenuContext.php
index 35786062150..ae4eab89ec7 100644
--- a/tests/acceptance/features/bootstrap/ContactsMenuContext.php
+++ b/tests/acceptance/features/bootstrap/ContactsMenuContext.php
@@ -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);
}
/**
diff --git a/tests/acceptance/features/bootstrap/SearchContext.php b/tests/acceptance/features/bootstrap/SearchContext.php
index ba0d9d9933d..db7aeb90ffe 100644
--- a/tests/acceptance/features/bootstrap/SearchContext.php
+++ b/tests/acceptance/features/bootstrap/SearchContext.php
@@ -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);
}
/**
diff --git a/tests/acceptance/features/bootstrap/ThemingAppContext.php b/tests/acceptance/features/bootstrap/ThemingAppContext.php
index 70fb2b01e16..d17d9c18109 100644
--- a/tests/acceptance/features/bootstrap/ThemingAppContext.php
+++ b/tests/acceptance/features/bootstrap/ThemingAppContext.php
@@ -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);
}
/**