Skip to content
Snippets Groups Projects
Unverified Commit 452d7696 authored by John Molakvoæ's avatar John Molakvoæ Committed by GitHub
Browse files

Merge pull request #15937 from...

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
parents dc9e73a6 c887564e
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
......@@ -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");
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment