From 5bba3fb57c2ddabf2e9b1208e65da17b809f0e88 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Thu, 1 Aug 2024 17:20:14 +0200 Subject: [PATCH] MDL-82686 myoverview: Hide course overview block menu On the My Courses page, the actions in the Course Overview block menu can be ignored by users who have access to them, so the UX team suggested hiding these actions --- blocks/myoverview/styles.css | 3 +++ my/tests/behat/my_courses.feature | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/blocks/myoverview/styles.css b/blocks/myoverview/styles.css index 851282ec8a4..5df1e020c91 100644 --- a/blocks/myoverview/styles.css +++ b/blocks/myoverview/styles.css @@ -9,3 +9,6 @@ color: var(--primary); } +.page-mycourses .block_myoverview .block-controls { + display: none; +} diff --git a/my/tests/behat/my_courses.feature b/my/tests/behat/my_courses.feature index ef10341f7b1..ec20259462a 100644 --- a/my/tests/behat/my_courses.feature +++ b/my/tests/behat/my_courses.feature @@ -109,8 +109,7 @@ Feature: Run tests over my courses. And I should see "This is visible on all pages" And "Move Text on all pages block" "menuitem" should not exist in the "Text on all pages" "block" And "Move Course overview block" "menuitem" should not exist in the "Course overview" "block" - And I click on "Actions menu" "icon" in the "Course overview" "block" - And I should not see "Delete Course overview block" + And "Actions menu" "icon" in the "Course overview" "block" should not be visible @javascript Scenario: User with creating a course permission can't see the Request course link