summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/bootstrap
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-11-08 13:01:13 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-11-08 13:19:15 +0100
commitb5977bef2e1366064314bc42d72c2c689a7b2155 (patch)
tree541af16db15c67898c4616ded093e1a12cc3b839 /tests/acceptance/features/bootstrap
parent13d7a2746c9289419a2d473880811221b09addd0 (diff)
downloadnextcloud-server-b5977bef2e1366064314bc42d72c2c689a7b2155.tar.gz
nextcloud-server-b5977bef2e1366064314bc42d72c2c689a7b2155.zip
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/acceptance/features/bootstrap')
-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());