1 |
efrain |
1 |
@core @core_admin
|
|
|
2 |
Feature: An administrator can manage TinyMCE subplugins
|
|
|
3 |
In order to alter the user experience
|
|
|
4 |
As an admin
|
|
|
5 |
I can manage TinyMCE subplugins
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: An administrator can control the enabled state of TinyMCE subplugins using JavaScript
|
|
|
9 |
Given I am logged in as "admin"
|
|
|
10 |
And I navigate to "Plugins > Text editors > TinyMCE editor > General settings" in site administration
|
|
|
11 |
When I click on "Disable Equation editor" "link"
|
|
|
12 |
Then I should see "Equation editor disabled."
|
|
|
13 |
And "Disable Equation editor" "link" should not exist
|
|
|
14 |
But "Enable Equation editor" "link" should exist
|
|
|
15 |
When I click on "Enable Equation editor" "link"
|
|
|
16 |
Then I should see "Equation editor enabled."
|
|
|
17 |
And "Enable Equation editor" "link" should not exist
|
|
|
18 |
But "Disable Equation editor" "link" should exist
|
|
|
19 |
|
|
|
20 |
Scenario: An administrator can control the enabled state of TinyMCE subplugins without JavaScript
|
|
|
21 |
Given I am logged in as "admin"
|
|
|
22 |
And I navigate to "Plugins > Text editors > TinyMCE editor > General settings" in site administration
|
|
|
23 |
When I click on "Disable Equation editor" "link"
|
|
|
24 |
Then I should see "Equation editor disabled."
|
|
|
25 |
And "Disable Equation editor" "link" should not exist
|
|
|
26 |
But "Enable Equation editor" "link" should exist
|
|
|
27 |
When I click on "Enable Equation editor" "link"
|
|
|
28 |
Then I should see "Equation editor enabled."
|
|
|
29 |
And "Enable Equation editor" "link" should not exist
|
|
|
30 |
But "Disable Equation editor" "link" should exist
|