mirrored from git://git.moodle.org/moodle.git
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
/
superscript.feature
34 lines (31 loc) · 1.33 KB
/
superscript.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@editor @editor_atto @atto @atto_superscript @_bug_phantomjs
Feature: Atto superscript button
To format text in Atto, I need to use the superscript button.
@javascript
Scenario: Subscript some text
Given I log in as "admin"
And I navigate to "Edit profile" node in "My profile settings"
And I set the field "Description" to "Helicopter"
And I set the field "Text editor" to "Plain text area"
And I select the text in the "Description" Atto editor
And I click on "Show more buttons" "button"
When I click on "Superscript" "button"
And I press "Update profile"
And I follow "Edit profile"
Then I should see "<sup>Helicopter</sup>"
@javascript
Scenario: Superscript some text that is enclosed in subscript
Given I log in as "admin"
And I follow "Profile" in the user menu
And I follow "Edit profile"
And I set the field "Description" to "<sub>Helicopter</sub>"
And I select the text in the "Description" Atto editor
And I click on "Show more buttons" "button"
When I click on "Superscript" "button"
And I press "Update profile"
And I follow "Preferences" in the user menu
And I follow "Editor preferences"
And I set the field "Text editor" to "Plain text area"
And I press "Save changes"
And I follow "Edit profile"
Then I should see "<sup>Helicopter</sup>"