diff --git a/lib/behat/form_field/behat_form_field.php b/lib/behat/form_field/behat_form_field.php index 6c2392135dc..d97ce537f63 100644 --- a/lib/behat/form_field/behat_form_field.php +++ b/lib/behat/form_field/behat_form_field.php @@ -235,12 +235,4 @@ class behat_form_field { return $this->fieldlocator; } - - /** - * Select all the text in the form field. - * - */ - public function select_text() { - throw new coding_exception('select_text() is not supported for this form field type: ' . get_class($this)); - } } diff --git a/lib/editor/atto/plugins/accessibilityhelper/tests/behat/accessibilityhelper.feature b/lib/editor/atto/plugins/accessibilityhelper/tests/behat/accessibilityhelper.feature index 3762a17b764..92dc58e13e4 100644 --- a/lib/editor/atto/plugins/accessibilityhelper/tests/behat/accessibilityhelper.feature +++ b/lib/editor/atto/plugins/accessibilityhelper/tests/behat/accessibilityhelper.feature @@ -8,7 +8,7 @@ Feature: Atto accessibility helper And I follow "Admin User" And I follow "Edit profile" And I set the field "Description" to "
Some plain text
Some plain text
" When I click on "Show more buttons" "button" - And I select the text in the "Description" field + And I select the text in the "Description" Atto editor And I click on "Unordered list" "button" And I click on "Screenreader helper" "button" - And I select the text in the "Description" field + And I select the text in the "Description" Atto editor # This shows the current HTML tags applied to the selected text. # This is required because they are not always read by a screen reader. Then I should see "UL, LI" diff --git a/lib/editor/atto/plugins/align/tests/behat/align.feature b/lib/editor/atto/plugins/align/tests/behat/align.feature index 51515a6af6c..893fcdbe7ce 100644 --- a/lib/editor/atto/plugins/align/tests/behat/align.feature +++ b/lib/editor/atto/plugins/align/tests/behat/align.feature @@ -10,7 +10,7 @@ Feature: Atto align text And I set the field "Description" to "Fascism
" And I set the field "Text editor" to "Plain text area" And I click on "Show more buttons" "button" - And I select the text in the "Description" field + And I select the text in the "Description" Atto editor When I click on "Right align" "button" And I press "Update profile" And I follow "Edit profile" @@ -24,7 +24,7 @@ Feature: Atto align text And I set the field "Description" to "Communism
" And I set the field "Text editor" to "Plain text area" And I click on "Show more buttons" "button" - And I select the text in the "Description" field + And I select the text in the "Description" Atto editor When I click on "Right align" "button" And I click on "Left align" "button" And I press "Update profile" @@ -39,7 +39,7 @@ Feature: Atto align text And I set the field "Description" to "United Future
" And I set the field "Text editor" to "Plain text area" And I click on "Show more buttons" "button" - And I select the text in the "Description" field + And I select the text in the "Description" Atto editor When I click on "Center" "button" And I press "Update profile" And I follow "Edit profile" diff --git a/lib/editor/atto/plugins/bold/tests/behat/bold.feature b/lib/editor/atto/plugins/bold/tests/behat/bold.feature index 0a1b49a113e..3aef641972a 100644 --- a/lib/editor/atto/plugins/bold/tests/behat/bold.feature +++ b/lib/editor/atto/plugins/bold/tests/behat/bold.feature @@ -9,7 +9,7 @@ Feature: Atto bold button And I follow "Edit profile" 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" field + And I select the text in the "Description" Atto editor When I click on "Bold" "button" And I press "Update profile" And I follow "Edit profile" @@ -22,7 +22,7 @@ Feature: Atto bold button And I follow "Edit profile" 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" field + And I select the text in the "Description" Atto editor When I click on "Bold" "button" And I click on "Bold" "button" And I press "Update profile" diff --git a/lib/editor/atto/plugins/charmap/tests/behat/charmap.feature b/lib/editor/atto/plugins/charmap/tests/behat/charmap.feature index eb5828ff87e..b68fddf2e52 100644 --- a/lib/editor/atto/plugins/charmap/tests/behat/charmap.feature +++ b/lib/editor/atto/plugins/charmap/tests/behat/charmap.feature @@ -9,7 +9,7 @@ Feature: Atto charmap button And I follow "Edit profile" And I set the field "Text editor" to "Plain text area" And I set the field "Description" to "1980 Mullet
" - And I select the text in the "Description" field + And I select the text in the "Description" Atto editor When I click on "Show more buttons" "button" And I click on "Insert character" "button" And I click on "copyright sign" "button" diff --git a/lib/editor/atto/plugins/clear/tests/behat/clear.feature b/lib/editor/atto/plugins/clear/tests/behat/clear.feature index 59e38f90bff..18483996611 100644 --- a/lib/editor/atto/plugins/clear/tests/behat/clear.feature +++ b/lib/editor/atto/plugins/clear/tests/behat/clear.feature @@ -10,7 +10,7 @@ Feature: Atto clear button And I set the field "Text editor" to "Plain text area" And I set the field "Description" to "Pisa
" When I click on "Show more buttons" "button" - And I select the text in the "Description" field + And I select the text in the "Description" Atto editor And I click on "Clear formatting" "button" And I press "Update profile" And I follow "Edit profile" diff --git a/lib/editor/atto/plugins/equation/tests/behat/equation.feature b/lib/editor/atto/plugins/equation/tests/behat/equation.feature index 31474091f1e..39754bbc2f7 100644 --- a/lib/editor/atto/plugins/equation/tests/behat/equation.feature +++ b/lib/editor/atto/plugins/equation/tests/behat/equation.feature @@ -8,7 +8,7 @@ Feature: Atto equation editor When I follow "Admin User" And I follow "Edit profile" And I set the field "Description" to "Equation test
" - And I select the text in the "Description" field + And I select the text in the "Description" Atto editor And I click on "Show more buttons" "button" And I click on "Equation editor" "button" And I set the field "Edit equation using" to " = 1 \div 0" diff --git a/lib/editor/atto/plugins/image/tests/behat/image.feature b/lib/editor/atto/plugins/image/tests/behat/image.feature index 566cc441863..984e5034103 100644 --- a/lib/editor/atto/plugins/image/tests/behat/image.feature +++ b/lib/editor/atto/plugins/image/tests/behat/image.feature @@ -11,7 +11,7 @@ Feature: Add images to Atto When I follow "Admin User" And I follow "Edit profile" And I set the field "Description" to "Image test
" - And I select the text in the "Description" field + And I select the text in the "Description" Atto editor And I click on "Image" "button" And I click on "Browse repositories..." "button" And I click on "Private files" "link" @@ -23,7 +23,7 @@ Feature: Add images to Atto And I click on "Save image" "button" And I click on "Update profile" "button" And I follow "Edit profile" - And I select the text in the "Description" field + And I select the text in the "Description" Atto editor And I click on "Image" "button" Then the field "Describe this image" matches value "It's the Moodle" diff --git a/lib/editor/atto/plugins/indent/tests/behat/indent.feature b/lib/editor/atto/plugins/indent/tests/behat/indent.feature index 5106de839cd..8ef72ab032e 100644 --- a/lib/editor/atto/plugins/indent/tests/behat/indent.feature +++ b/lib/editor/atto/plugins/indent/tests/behat/indent.feature @@ -9,7 +9,7 @@ Feature: Indent text in Atto And I follow "Edit profile" And I set the field "Description" to "I need some space.
" And I set the field "Text editor" to "Plain text area" - And I select the text in the "Description" field + And I select the text in the "Description" Atto editor And I click on "Show more buttons" "button" And I click on "Indent" "button" And I press "Update profile" @@ -23,7 +23,7 @@ Feature: Indent text in Atto And I follow "Edit profile" And I set the field "Description" to "I need some space.
" And I set the field "Text editor" to "Plain text area" - And I select the text in the "Description" field + And I select the text in the "Description" Atto editor And I click on "Show more buttons" "button" And I click on "Indent" "button" And I click on "Outdent" "button" diff --git a/lib/editor/atto/plugins/italic/tests/behat/italic.feature b/lib/editor/atto/plugins/italic/tests/behat/italic.feature index a582132a362..f1fca1d23fb 100644 --- a/lib/editor/atto/plugins/italic/tests/behat/italic.feature +++ b/lib/editor/atto/plugins/italic/tests/behat/italic.feature @@ -9,7 +9,7 @@ Feature: Atto italic button And I follow "Edit profile" 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" field + And I select the text in the "Description" Atto editor When I click on "Italic" "button" And I press "Update profile" And I follow "Edit profile" @@ -22,7 +22,7 @@ Feature: Atto italic button And I follow "Edit profile" 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" field + And I select the text in the "Description" Atto editor When I click on "Italic" "button" And I click on "Italic" "button" And I press "Update profile" diff --git a/lib/editor/atto/plugins/link/tests/behat/link.feature b/lib/editor/atto/plugins/link/tests/behat/link.feature index 00a1e05d457..8edd2e4513b 100644 --- a/lib/editor/atto/plugins/link/tests/behat/link.feature +++ b/lib/editor/atto/plugins/link/tests/behat/link.feature @@ -12,7 +12,7 @@ Feature: Add links to Atto And I follow "Edit profile" 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" field + And I select the text in the "Description" Atto editor And I click on "Link" "button" And I click on "Browse repositories..." "button" And I click on "Private files" "link" diff --git a/lib/editor/atto/plugins/media/tests/behat/media.feature b/lib/editor/atto/plugins/media/tests/behat/media.feature index a8eff24ec76..d0d993dd359 100644 --- a/lib/editor/atto/plugins/media/tests/behat/media.feature +++ b/lib/editor/atto/plugins/media/tests/behat/media.feature @@ -13,7 +13,7 @@ Feature: Add media to Atto And I expand "Blogs" node And I follow "Add a new entry" And I set the field "Blog entry body" to "Media test
" - And I select the text in the "Blog entry body" field + And I select the text in the "Blog entry body" Atto editor And I set the field "Entry title" to "The best video in the entire world (not really)" And I click on "Media" "button" And I click on "Browse repositories..." "button" diff --git a/lib/editor/atto/plugins/orderedlist/tests/behat/orderedlist.feature b/lib/editor/atto/plugins/orderedlist/tests/behat/orderedlist.feature index 8b85d903ca4..38140c3d397 100644 --- a/lib/editor/atto/plugins/orderedlist/tests/behat/orderedlist.feature +++ b/lib/editor/atto/plugins/orderedlist/tests/behat/orderedlist.feature @@ -9,7 +9,7 @@ Feature: Atto ordered list button And I follow "Edit profile" And I set the field "Description" to "Have you heard the news everyone's talking| Cell |