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>2018-11-08 15:01:13 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-11-08 15:19:15 +0300
commitb5977bef2e1366064314bc42d72c2c689a7b2155 (patch)
tree541af16db15c67898c4616ded093e1a12cc3b839 /tests
parent13d7a2746c9289419a2d473880811221b09addd0 (diff)
Adjust acceptance tests to changes in public share page menu
The "Download" item in the menu of public share pages is no longer shown in wide (>768px) windows (although the element is in the DOM and shown if resized to a narrow window). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/bootstrap/FilesSharingAppContext.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/acceptance/features/bootstrap/FilesSharingAppContext.php b/tests/acceptance/features/bootstrap/FilesSharingAppContext.php
index 531184442dd..fc589a84ac6 100644
--- a/tests/acceptance/features/bootstrap/FilesSharingAppContext.php
+++ b/tests/acceptance/features/bootstrap/FilesSharingAppContext.php
@@ -198,7 +198,10 @@ class FilesSharingAppContext implements Context, ActorAwareInterface {
PHPUnit_Framework_Assert::fail("The Share menu is not visible yet after $timeout seconds");
}
- PHPUnit_Framework_Assert::assertTrue(
+ // The acceptance tests are run in a window wider than 768px, so the
+ // download item should not be shown in the menu (although it will be in
+ // the DOM).
+ PHPUnit_Framework_Assert::assertFalse(
$this->actor->find(self::downloadItemInShareMenu())->isVisible());
PHPUnit_Framework_Assert::assertTrue(
$this->actor->find(self::directLinkItemInShareMenu())->isVisible());