1 |
efrain |
1 |
@block @block_mnet_hosts @javascript @addablocklink
|
|
|
2 |
Feature: Add the network servers block when main feature is enabled
|
|
|
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 can be added when mnet authentication is enabled
|
|
|
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 I am on site homepage
|
|
|
12 |
And I turn editing mode on
|
|
|
13 |
When I click on "Add a block" "link"
|
|
|
14 |
Then I should see "Network servers"
|
|
|
15 |
|
|
|
16 |
Scenario: The network servers block cannot be added when mnet authentication is disabled
|
|
|
17 |
Given I log in as "admin"
|
|
|
18 |
And I am on site homepage
|
|
|
19 |
And I turn editing mode on
|
|
|
20 |
When I click on "Add a block" "link"
|
|
|
21 |
Then I should not see "Network servers"
|