1 |
efrain |
1 |
@core @core_admin
|
|
|
2 |
Feature: An administrator can manage Media plugins
|
|
|
3 |
In order to alter the user experience
|
|
|
4 |
As an admin
|
|
|
5 |
I can manage media plugins
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: An administrator can control the enabled state of media plugins using JavaScript
|
1441 |
ariadna |
9 |
The state change should be reflected in the UI and persist across page reloads
|
1 |
efrain |
10 |
Given I am logged in as "admin"
|
|
|
11 |
And I navigate to "Plugins > Media players > Manage media players" in site administration
|
1441 |
ariadna |
12 |
When I toggle the "Disable YouTube" admin switch "off"
|
|
|
13 |
And I should see "YouTube disabled."
|
|
|
14 |
And I reload the page
|
|
|
15 |
Then I should see "Enable YouTube"
|
|
|
16 |
And I toggle the "Enable YouTube" admin switch "on"
|
|
|
17 |
And I should see "YouTube enabled."
|
|
|
18 |
And I reload the page
|
|
|
19 |
Then I should see "Disable YouTube"
|