From b5977bef2e1366064314bc42d72c2c689a7b2155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Thu, 8 Nov 2018 13:01:13 +0100 Subject: [PATCH] Adjust acceptance tests to changes in public share page menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../acceptance/features/bootstrap/FilesSharingAppContext.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/features/bootstrap/FilesSharingAppContext.php b/tests/acceptance/features/bootstrap/FilesSharingAppContext.php index 531184442ddfa..fc589a84ac65b 100644 --- a/tests/acceptance/features/bootstrap/FilesSharingAppContext.php +++ b/tests/acceptance/features/bootstrap/FilesSharingAppContext.php @@ -198,7 +198,10 @@ public function iSeeThatTheShareMenuIsShown() { 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());