2023-02-20 20:06:32 +08:00
|
|
|
@core @core_admin
|
|
|
|
Feature: An administrator can manage Media plugins
|
|
|
|
In order to alter the user experience
|
|
|
|
As an admin
|
|
|
|
I can manage media plugins
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: An administrator can control the enabled state of media plugins using JavaScript
|
|
|
|
Given I am logged in as "admin"
|
|
|
|
And I navigate to "Plugins > Media players > Manage media players" in site administration
|
2023-04-14 15:47:13 +01:00
|
|
|
When I click on "Disable YouTube" "link"
|
|
|
|
Then I should see "YouTube disabled."
|
|
|
|
And "Disable YouTube" "link" should not exist
|
|
|
|
But "Enable YouTube" "link" should exist
|
|
|
|
When I click on "Enable YouTube" "link"
|
|
|
|
Then I should see "YouTube enabled."
|
|
|
|
And "Enable YouTube" "link" should not exist
|
|
|
|
But "Disable YouTube" "link" should exist
|
2023-02-20 20:06:32 +08:00
|
|
|
|
|
|
|
Scenario: An administrator can control the enabled state of media plugins without JavaScript
|
|
|
|
Given I am logged in as "admin"
|
|
|
|
And I navigate to "Plugins > Media players > Manage media players" in site administration
|
2023-04-14 15:47:13 +01:00
|
|
|
When I click on "Disable YouTube" "link"
|
|
|
|
Then I should see "YouTube disabled."
|
|
|
|
And "Disable YouTube" "link" should not exist
|
|
|
|
But "Enable YouTube" "link" should exist
|
|
|
|
When I click on "Enable YouTube" "link"
|
|
|
|
Then I should see "YouTube enabled."
|
|
|
|
And "Enable YouTube" "link" should not exist
|
|
|
|
But "Disable YouTube" "link" should exist
|