MDL-55957 behat: Set some text before selecting in Atto

This commit is contained in:
Rajesh Taneja 2016-09-28 07:17:54 +08:00
parent b58bbbd4f1
commit 2ee249ac90
No known key found for this signature in database
GPG Key ID: B363F7FB787F80E4

View File

@ -29,6 +29,7 @@ Feature: Teachers can embed images into instructions and conclusion fields
# Embed the image into Instructions for submission.
And I navigate to "Edit settings" node in "Workshop administration"
And I expand all fieldsets
And I set the field "Instructions for submission" to "<p>Image test</p>"
And I select the text in the "Instructions for submission" Atto editor
And I click on "Image" "button" in the "#fitem_id_instructauthorseditor" "css_element"
And I click on "Browse repositories..." "button"
@ -41,6 +42,7 @@ Feature: Teachers can embed images into instructions and conclusion fields
# Embed the image into Instructions for assessment.
And I navigate to "Edit settings" node in "Workshop administration"
And I expand all fieldsets
And I set the field "Instructions for assessment" to "<p>Image test</p>"
And I select the text in the "Instructions for assessment" Atto editor
And I click on "Image" "button" in the "#fitem_id_instructreviewerseditor" "css_element"
And I click on "Browse repositories..." "button"
@ -53,6 +55,7 @@ Feature: Teachers can embed images into instructions and conclusion fields
# Embed the image into Conclusion.
And I navigate to "Edit settings" node in "Workshop administration"
And I expand all fieldsets
And I set the field "Conclusion" to "<p>Image test</p>"
And I select the text in the "Conclusion" Atto editor
And I click on "Image" "button" in the "#fitem_id_conclusioneditor" "css_element"
And I click on "Browse repositories..." "button"