Merge pull request #15937 from nextcloud/fix-download-entry-shown-on-public-share-menu-when-not-in-mobile

Fix download entry shown on public share menu when not in mobile
This commit is contained in:
John Molakvoæ 2019-06-12 17:42:36 +02:00 committed by GitHub
commit 452d7696ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -195,7 +195,7 @@ thead {
// hide the download entry on the menu
// on public share when NOT on mobile
@media only screen and (min-width: $mobile_breakpoint + 1) {
@media only screen and (min-width: $breakpoint-mobile + 1) {
#body-public {
.header-right {
#header-actions-menu {

View File

@ -202,11 +202,14 @@ class PublicShareContext implements Context, ActorAwareInterface {
// 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());
$this->actor->find(self::downloadItemInShareMenu())->isVisible(),
"Download item in share menu is visible");
PHPUnit_Framework_Assert::assertTrue(
$this->actor->find(self::directLinkItemInShareMenu())->isVisible());
$this->actor->find(self::directLinkItemInShareMenu())->isVisible(),
"Direct link item in share menu is not visible");
PHPUnit_Framework_Assert::assertTrue(
$this->actor->find(self::saveItemInShareMenu())->isVisible());
$this->actor->find(self::saveItemInShareMenu())->isVisible(),
"Save item in share menu is not visible");
}
/**