Skip to content

Commit fe261c4

Browse files
authored
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
2 parents 42121fe + b5977be commit fe261c4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/acceptance/features/bootstrap/FilesSharingAppContext.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ public function iSeeThatTheShareMenuIsShown() {
198198
PHPUnit_Framework_Assert::fail("The Share menu is not visible yet after $timeout seconds");
199199
}
200200

201-
PHPUnit_Framework_Assert::assertTrue(
201+
// The acceptance tests are run in a window wider than 768px, so the
202+
// download item should not be shown in the menu (although it will be in
203+
// the DOM).
204+
PHPUnit_Framework_Assert::assertFalse(
202205
$this->actor->find(self::downloadItemInShareMenu())->isVisible());
203206
PHPUnit_Framework_Assert::assertTrue(
204207
$this->actor->find(self::directLinkItemInShareMenu())->isVisible());

0 commit comments

Comments
 (0)