Skip to content

Commit

Permalink
Adjust acceptance tests to changes in public share page menu
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
danxuliu committed Nov 8, 2018
1 parent 13d7a27 commit b5977be
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit b5977be

Please sign in to comment.