1 |
efrain |
1 |
@block @block_mnet_hosts @javascript
|
|
|
2 |
Feature: Add the network servers block when main feature is disabled
|
|
|
3 |
In order to add the Network servers block to my course
|
|
|
4 |
As a teacher
|
|
|
5 |
It should be added only if the MNet authentication is enabled.
|
|
|
6 |
|
|
|
7 |
Scenario: The network servers block is displayed even when mnet authentication is disabled
|
|
|
8 |
Given I log in as "admin"
|
|
|
9 |
And I navigate to "Plugins > Authentication > Manage authentication" in site administration
|
|
|
10 |
And I click on "Enable" "icon" in the "MNet authentication" "table_row"
|
|
|
11 |
And the following "blocks" exist:
|
|
|
12 |
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
|
|
13 |
| mnet_hosts | System | 1 | site-index | side-pre |
|
|
|
14 |
When I navigate to "Plugins > Authentication > Manage authentication" in site administration
|
|
|
15 |
And I click on "Disable" "icon" in the "MNet authentication" "table_row"
|
|
|
16 |
And I am on site homepage
|
|
|
17 |
And I turn editing mode on
|
|
|
18 |
Then I should see "Network servers"
|
|
|
19 |
|
|
|
20 |
Scenario: The network servers block can be removed even when mnet authentication is disabled
|
|
|
21 |
Given I log in as "admin"
|
|
|
22 |
And I navigate to "Plugins > Authentication > Manage authentication" in site administration
|
|
|
23 |
And I click on "Enable" "icon" in the "MNet authentication" "table_row"
|
|
|
24 |
And the following "blocks" exist:
|
|
|
25 |
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
|
|
26 |
| mnet_hosts | System | 1 | site-index | side-pre |
|
|
|
27 |
And I am on site homepage
|
|
|
28 |
And I turn editing mode on
|
|
|
29 |
And I open the "Network servers" blocks action menu
|
|
|
30 |
And I click on "Delete Network servers block" "link" in the "Network servers" "block"
|
|
|
31 |
And "Delete block?" "dialogue" should exist
|
|
|
32 |
And I click on "Cancel" "button" in the "Delete block?" "dialogue"
|
|
|
33 |
And I should see "Network servers"
|
|
|
34 |
And I navigate to "Plugins > Authentication > Manage authentication" in site administration
|
|
|
35 |
And I click on "Disable" "icon" in the "MNet authentication" "table_row"
|
|
|
36 |
And I am on site homepage
|
|
|
37 |
And I turn editing mode on
|
|
|
38 |
And I open the "Network servers" blocks action menu
|
|
|
39 |
And I click on "Delete Network servers block" "link" in the "Network servers" "block"
|
|
|
40 |
And "Delete block?" "dialogue" should exist
|
|
|
41 |
And I click on "Delete" "button" in the "Delete block?" "dialogue"
|
|
|
42 |
Then I should not see "Network servers"
|