Merge branch 'MDL-83593_404' of https://github.com/lostrogit/moodle into MOODLE_404_STABLE

This commit is contained in:
Jun Pataleta 2024-12-17 19:32:59 +08:00
commit 1334a9ef95
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
2 changed files with 10 additions and 1 deletions

View File

@ -47,7 +47,14 @@
>
{{#pix}} e/cancel, core {{/pix}}
</button>
{{$drawerheading}}{{/drawerheading}}
<a
href="{{{ config.homeurl }}}"
title="{{{ sitename }}}"
data-region="site-home-link"
class="aabtn text-reset d-flex align-items-center py-1 h-100 d-md-none"
>
{{$drawerheading}}{{/drawerheading}}
</a>
<div class="drawerheadercontent hidden">
{{$drawerheadercontent}}{{/drawerheadercontent}}
</div>

View File

@ -54,6 +54,8 @@ Feature: Primary navigation
And "Side panel" "button" should exist
And I click on "Side panel" "button"
And I should see "Home" in the "theme_boost-drawers-primary" "region"
And I click on "[data-region='site-home-link']" "css_element"
And I should see "Dashboard" in the "page-header" "region"
@theme_boost
Scenario: Guest users can only see the Home item in the primary navigation menu