| Línea 6... |
Línea 6... |
| 6 |
|
6 |
|
| 7 |
@javascript
|
7 |
@javascript
|
| 8 |
Scenario: An administrator can control the enabled state of block plugins using JavaScript
|
8 |
Scenario: An administrator can control the enabled state of block plugins using JavaScript
|
| 9 |
Given I am logged in as "admin"
|
9 |
Given I am logged in as "admin"
|
| 10 |
And I navigate to "Plugins > Blocks > Manage blocks" in site administration
|
10 |
And I navigate to "Plugins > Blocks > Manage blocks" in site administration
|
| 11 |
When I click on "Disable Latest badges" "link"
|
11 |
When I toggle the "Disable Latest badges" admin switch "off"
|
| 12 |
Then I should see "Latest badges disabled."
|
- |
|
| 13 |
And "Disable Latest badges" "link" should not exist
|
- |
|
| 14 |
But "Enable Latest badges" "link" should exist
|
12 |
And I should see "Latest badges disabled."
|
| 15 |
When I click on "Enable Latest badges" "link"
|
13 |
And I reload the page
|
| 16 |
Then I should see "Latest badges enabled."
|
14 |
Then I should see "Enable Latest badges"
|
| 17 |
And "Enable Latest badges" "link" should not exist
|
- |
|
| 18 |
But "Disable Latest badges" "link" should exist
|
- |
|
| 19 |
|
- |
|
| 20 |
Scenario: An administrator can control the enabled state of block plugins without JavaScript
|
- |
|
| 21 |
Given I am logged in as "admin"
|
- |
|
| 22 |
And I navigate to "Plugins > Blocks > Manage blocks" in site administration
|
- |
|
| 23 |
When I click on "Disable Latest badges" "link"
|
15 |
And I toggle the "Enable Latest badges" admin switch "on"
|
| 24 |
Then I should see "Latest badges disabled."
|
- |
|
| 25 |
And "Disable Latest badges" "link" should not exist
|
- |
|
| 26 |
But "Enable Latest badges" "link" should exist
|
16 |
And I should see "Latest badges enabled."
|
| 27 |
When I click on "Enable Latest badges" "link"
|
17 |
And I reload the page
|
| 28 |
Then I should see "Latest badges enabled."
|
- |
|
| 29 |
And "Enable Latest badges" "link" should not exist
|
- |
|
| Línea 30... |
Línea 18... |
| 30 |
But "Disable Latest badges" "link" should exist
|
18 |
Then I should see "Disable Latest badges"
|
| 31 |
|
19 |
|
| 32 |
@javascript
|
20 |
@javascript
|
| 33 |
Scenario: An administrator can control the protected state of block plugins using JavaScript
|
21 |
Scenario: An administrator can control the protected state of block plugins using JavaScript
|