summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-11-08 22:44:26 +0100
committerGitHub <noreply@github.com>2018-11-08 22:44:26 +0100
commitfe261c48668bfd910141619753b12963babf6426 (patch)
tree47e803b2327e7ae033d20f5e094416c3dd1688e8
parent42121fe4d71237f769831e2b33def779e0566e7c (diff)
parentb5977bef2e1366064314bc42d72c2c689a7b2155 (diff)
downloadnextcloud-server-fe261c48668bfd910141619753b12963babf6426.tar.gz
nextcloud-server-fe261c48668bfd910141619753b12963babf6426.zip
Merge pull request #12352 from nextcloud/adjust-acceptance-tests-to-changes-in-public-share-page-menu
Adjust acceptance tests to changes in public share page menu
-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());