MDL-50446 block_site_main_menu: Test add URL resource
[moodle.git] / blocks / site_main_menu / tests / behat / add_url.feature
... / ...
CommitLineData
1@block @block_main_menu
2Feature: Add URL to main menu block
3 In order to add helpful resources for students
4 As a admin
5 I need to add URLs to the main menu block and check it works.
6
7 @javascript
8 Scenario: Add a URL in menu block and ensure it appears
9 Given I log in as "admin"
10 And I am on site homepage
11 And I navigate to "Turn editing on" node in "Front page settings"
12 When I add a "URL" to section "0" and I fill the form with:
13 | Name | google |
14 | Description | gooooooooogle |
15 | External URL | http://www.google.com |
16 | id_display | In pop-up |
17 Then "google" "link" should exist in the "Main menu" "block"
18 And "Add an activity or resource" "link" should exist in the "Main menu" "block"