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
This commit is contained in:
Morris Jobke 2018-11-08 22:44:26 +01:00 committed by GitHub
commit fe261c4866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());