MDL-44871 Atto behat: Use one less page load to get to profile edit page
This commit is contained in:
+2
-4
@@ -5,8 +5,7 @@ Feature: Atto accessibility checker
|
||||
@javascript
|
||||
Scenario: Images with no alt
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "<p>Some plain text</p><img src='/broken-image'/><p>Some more text</p>"
|
||||
When I click on "Show more buttons" "button"
|
||||
And I click on "Accessibility checker" "button"
|
||||
@@ -15,8 +14,7 @@ Feature: Atto accessibility checker
|
||||
@javascript
|
||||
Scenario: Low contrast
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "<p style='color: #7c7cff; background-color: #ffffff;'>Hard to read</p>"
|
||||
When I click on "Show more buttons" "button"
|
||||
And I click on "Accessibility checker" "button"
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto accessibility helper
|
||||
@javascript
|
||||
Scenario: Images and links
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "<p>Some plain text</p><img src='/broken-image' alt='Image 1'/><p><a href='#fsd'>Some link text</a></p>"
|
||||
And I select the text in the "Description" Atto editor
|
||||
When I click on "Show more buttons" "button"
|
||||
@@ -21,8 +20,7 @@ Feature: Atto accessibility helper
|
||||
@javascript
|
||||
Scenario: Styles
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "<p>Some plain text</p>"
|
||||
When I click on "Show more buttons" "button"
|
||||
And I select the text in the "Description" Atto editor
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto align text
|
||||
@javascript
|
||||
Scenario: Right align some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "<p>Fascism</p>"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I click on "Show more buttons" "button"
|
||||
@@ -19,8 +18,7 @@ Feature: Atto align text
|
||||
@javascript
|
||||
Scenario: Left align some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "<p>Communism</p>"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I click on "Show more buttons" "button"
|
||||
@@ -34,8 +32,7 @@ Feature: Atto align text
|
||||
@javascript
|
||||
Scenario: Center align some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "<p>United Future</p>"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I click on "Show more buttons" "button"
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto bold button
|
||||
@javascript
|
||||
Scenario: Bold some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I set the field "Description" to "Badger"
|
||||
And I select the text in the "Description" Atto editor
|
||||
@@ -18,8 +17,7 @@ Feature: Atto bold button
|
||||
@javascript
|
||||
Scenario: Unbold some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I set the field "Description" to "Mouse"
|
||||
And I select the text in the "Description" Atto editor
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto charmap button
|
||||
@javascript
|
||||
Scenario: Insert symbols
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I set the field "Description" to "<p>1980 Mullet</p>"
|
||||
And I select the text in the "Description" Atto editor
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto clear button
|
||||
@javascript
|
||||
Scenario: Clear formatting
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I set the field "Description" to "<p><i>Pisa</i></p>"
|
||||
When I click on "Show more buttons" "button"
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto collapse button
|
||||
@javascript
|
||||
Scenario: Toggle toolbar
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
When I click on "Show more buttons" "button"
|
||||
Then "Equation editor" "button" should be visible
|
||||
And I click on "Show fewer buttons" "button"
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto equation editor
|
||||
@javascript
|
||||
Scenario: Create an equation
|
||||
Given I log in as "admin"
|
||||
When I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
When I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "<p>Equation test</p>"
|
||||
And I select the text in the "Description" Atto editor
|
||||
And I click on "Show more buttons" "button"
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto edit HTML
|
||||
@javascript
|
||||
Scenario: Edit the html source
|
||||
Given I log in as "admin"
|
||||
When I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
When I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "<p style=\"color: blue;\">Smurf</p>"
|
||||
And I click on "Show more buttons" "button"
|
||||
And I click on "HTML" "button"
|
||||
|
||||
@@ -8,8 +8,7 @@ Feature: Add images to Atto
|
||||
And I navigate to "My private files" node in "My profile"
|
||||
And I upload "lib/editor/atto/tests/fixtures/moodle-logo.png" file to "Files" filemanager
|
||||
And I click on "Save changes" "button"
|
||||
When I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
When I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "<p>Image test</p>"
|
||||
And I select the text in the "Description" Atto editor
|
||||
And I click on "Image" "button"
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Indent text in Atto
|
||||
@javascript
|
||||
Scenario: Indent
|
||||
Given I log in as "admin"
|
||||
When I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
When I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "<p>I need some space.</p>"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I select the text in the "Description" Atto editor
|
||||
@@ -19,8 +18,7 @@ Feature: Indent text in Atto
|
||||
@javascript
|
||||
Scenario: Indent and outdent
|
||||
Given I log in as "admin"
|
||||
When I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
When I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "<p>I need some space.</p>"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I select the text in the "Description" Atto editor
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto italic button
|
||||
@javascript
|
||||
Scenario: Italicise some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "Tower of Pisa"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I select the text in the "Description" Atto editor
|
||||
@@ -18,8 +17,7 @@ Feature: Atto italic button
|
||||
@javascript
|
||||
Scenario: Toggle italics in some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "GHD - for hair"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I select the text in the "Description" Atto editor
|
||||
|
||||
@@ -8,8 +8,7 @@ Feature: Add links to Atto
|
||||
And I navigate to "My private files" node in "My profile"
|
||||
And I upload "lib/editor/atto/tests/fixtures/moodle-logo.png" file to "Files" filemanager
|
||||
And I click on "Save changes" "button"
|
||||
When I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
When I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I set the field "Description" to "Super cool"
|
||||
And I select the text in the "Description" Atto editor
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto ordered list button
|
||||
@javascript
|
||||
Scenario: Make a list from some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "Have you heard the news everyone's talking<br/> Life is good 'cause everything's awesome<br/>"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I select the text in the "Description" Atto editor
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto strike button
|
||||
@javascript
|
||||
Scenario: Strike some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "MUA"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I select the text in the "Description" Atto editor
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto subscript button
|
||||
@javascript
|
||||
Scenario: Subscript some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "Submarine"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I select the text in the "Description" Atto editor
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto superscript button
|
||||
@javascript
|
||||
Scenario: Subscript some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
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
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto title
|
||||
@javascript
|
||||
Scenario: Create a heading
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I set the field "Description" to "How The Rock Has Made the WWE World Heavyweight Title More Important Than Ever"
|
||||
And I select the text in the "Description" Atto editor
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto underline button
|
||||
@javascript
|
||||
Scenario: Underline some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "Deprecated HTML Tag"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I select the text in the "Description" Atto editor
|
||||
|
||||
@@ -5,8 +5,7 @@ Feature: Atto unordered list button
|
||||
@javascript
|
||||
Scenario: Make a list from some text
|
||||
Given I log in as "admin"
|
||||
And I follow "Admin User"
|
||||
And I follow "Edit profile"
|
||||
And I navigate to "Edit profile" node in "My profile settings"
|
||||
And I set the field "Description" to "Things, dogs, clogs, they're awesome<br/> Rocks, clocks, and socks, they're awesome<br/> Figs, and wigs, and twigs, that's awesome<br/> Everything you see or think or say is awesome"
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I select the text in the "Description" Atto editor
|
||||
|
||||
Reference in New Issue
Block a user