summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-02-15 16:55:42 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-02-15 17:48:07 +0100
commit0a2c98ac895bac7fdd1d4ab954ec4721c9b1552d (patch)
treeafc533b41f9227f65690e152c8a6b222354b05e1 /tests
parent28d5862643b5a2b472b511b53d872fb082b1d6eb (diff)
downloadnextcloud-server-0a2c98ac895bac7fdd1d4ab954ec4721c9b1552d.tar.gz
nextcloud-server-0a2c98ac895bac7fdd1d4ab954ec4721c9b1552d.zip
Adjust timeouts in the step to create a new comment
Depending on the previous steps the new comment field may be already shown or not when the step to create a new comment is executed. Therefore, the timeout was increased from 2 to the "standard" 10 seconds used in other tests. If the new comment field was found there is no need to use a timeout when looking for the new comment button; it is either there or not, it will not appear after some time. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/bootstrap/CommentsAppContext.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/acceptance/features/bootstrap/CommentsAppContext.php b/tests/acceptance/features/bootstrap/CommentsAppContext.php
index 83a2476eb91..8bc0f28ca34 100644
--- a/tests/acceptance/features/bootstrap/CommentsAppContext.php
+++ b/tests/acceptance/features/bootstrap/CommentsAppContext.php
@@ -57,8 +57,8 @@ class CommentsAppContext implements Context, ActorAwareInterface {
* @When /^I create a new comment with "([^"]*)" as message$/
*/
public function iCreateANewCommentWithAsMessage($commentText) {
- $this->actor->find(self::newCommentField(), 2)->setValue($commentText);
- $this->actor->find(self::submitNewCommentButton(), 2)->click();
+ $this->actor->find(self::newCommentField(), 10)->setValue($commentText);
+ $this->actor->find(self::submitNewCommentButton())->click();
}
/**