���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home3/cpr76684/public_html/Aem/blocks/site_main_menu/tests/behat/add_url.feature
���ѧ٧ѧ�
@block @block_site_main_menu Feature: Add URL to main menu block In order to add helpful resources for students As a admin I need to add URLs to the main menu block and check it works. @javascript Scenario: Add a URL in menu block and ensure it appears Given I log in as "admin" And I am on site homepage And I turn editing mode on And I add the "Main menu" block And the following "activity" exists: | activity | url | | course | Acceptance test site | | name | reference link | | intro | mooooooooodle | | externalurl | http://www.moodle.com | | section | 0 | When I am on the "reference link" "url activity editing" page And I expand all fieldsets And I set the following fields to these values: | id_display | In pop-up | And I press "Save and return to course" Then "reference link" "link" should exist in the "Main menu" "block" And "Add an activity or resource" "button" should exist in the "Main menu" "block" @javascript Scenario: Add a URL in menu block can appear in the entire site Given the following "course" exists: | fullname | Course 1 | | shortname | C1 | | category | 0 | | enablecompletion | 1 | When I log in as "admin" And I am on site homepage And I turn editing mode on And I add the "Main menu" block And I configure the "Main menu" block And I set the following fields to these values: | Page contexts | Display throughout the entire site | And I press "Save changes" And the following "activity" exists: | activity | url | | course | Acceptance test site | | name | reference link | | intro | mooooooooodle | | externalurl | http://www.moodle.com | | section | 0 | And I am on the "reference link" "url activity editing" page And I expand all fieldsets And I set the following fields to these values: | id_display | Embed | And I press "Save and return to course" Then I click on "reference link" "link" in the "Main menu" "block" And "reference link" "link" should exist in the "Main menu" "block" And I am on the "C1" "Course" page And "reference link" "link" should exist in the "Main menu" "block" And I navigate to "Badges > Add a new badge" in site administration And "reference link" "link" should exist in the "Main menu" "block" @javascript Scenario: Add a URL in menu block can appear in any front page Given the following "course" exists: | fullname | Course 1 | | shortname | C1 | | category | 0 | | enablecompletion | 1 | When I log in as "admin" And I am on site homepage And I turn editing mode on And I add the "Main menu" block And I configure the "Main menu" block And I set the following fields to these values: | Page contexts | Display on the site home and any pages added to the site home. | And I press "Save changes" And the following "activity" exists: | activity | url | | course | Acceptance test site | | name | reference link | | intro | mooooooooodle | | externalurl | http://www.moodle.com | | section | 0 | And I am on the "reference link" "url activity editing" page And I expand all fieldsets And I set the following fields to these values: | id_display | Embed | And I press "Save and return to course" Then I click on "reference link" "link" in the "Main menu" "block" And "reference link" "link" should exist in the "Main menu" "block" And I am on the "C1" "Course" page And "Main menu" "block" should not exist And I navigate to "Badges > Add a new badge" in site administration And "Main menu" "block" should not exist @javascript Scenario: When the "Main Menu" block is displayed throrought the entire site, adding an URL in a course results in adding it in the course and not in the frontpage Given the following "course" exists: | fullname | Course 1 | | shortname | C1 | | category | 0 | And I log in as "admin" And I am on site homepage And I turn editing mode on And I add the "Main menu" block And I configure the "Main menu" block And I set the following fields to these values: | Page contexts | Display throughout the entire site | And I press "Save changes" When the following "activity" exists: | activity | url | | course | C1 | | name | reference link | | intro | mooooooooodle | | externalurl | http://www.moodle.com | | section | 0 | | showdescription | 1 | And I am on the "reference link" "url activity editing" page And I expand all fieldsets And I set the following fields to these values: | id_display | In pop-up | And I press "Save and return to course" Then "reference link" "link" should not exist in the "Main menu" "block" And I should see "mooooooooodle" in the "region-main" "region"
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�