forked from moodle-an-hochschulen/moodle-theme_boost_union
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs type smartmenu item, resolves: moodle-an-hochschulen#657
- Loading branch information
Showing
3 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tests/behat/theme_boost_union_smartmenusettings_menuitems_docslink.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@theme @theme_boost_union @theme_boost_union_smartmenusettings @theme_boost_union_smartmenusettings_menuitems @theme_boost_union_smartmenusettings_menuitems_docslink | ||
Feature: Configuring the theme_boost_union plugin on the "Smart menus" page, using dynamic menus to automatically compose smart menu items | ||
In order to use the features | ||
As admin | ||
I need to be able to configure the theme Boost Union plugin | ||
|
||
Background: | ||
Given I log in as "admin" | ||
And I create smart menu with the following fields to these values: | ||
| Title | Quick links | | ||
| Menu location(s) | Main, Menu, User, Bottom | | ||
|
||
@javascript | ||
Scenario: Smartmenus: Menu items: Documentation Link - Add a smart menu documentation link item in smart menu | ||
When I log in as "admin" | ||
And I set "Quick links" smart menu items with the following fields to these values: | ||
| Title | Documentation | | ||
| Menu item type | Moodle Documentation | | ||
And I should see smart menu "Quick links" item "Documentation" in location "Main, Menu, User, Bottom" | ||
And the "href" attribute of "//div[@class='primary-navigation']//a[contains(normalize-space(.), 'Documentation')]" "xpath_element" should contain "/en/theme/boost_union/smartmenus/items" | ||
And I go to the courses management page | ||
And I should see smart menu "Quick links" item "Documentation" in location "Main, Menu, User, Bottom" | ||
And the "href" attribute of "//div[@class='primary-navigation']//a[contains(normalize-space(.), 'Documentation')]" "xpath_element" should contain "en/course/management" |