MDL-57380 behat: Check for list tags and text

after list tag span can be added on few browsers
like chrome 51.0, so test if text starts with
list tag and contains text
This commit is contained in:
Rajesh Taneja
2016-12-14 09:59:46 +08:00
parent 02aa2c5257
commit 548b707034
2 changed files with 2 additions and 4 deletions
@@ -16,5 +16,4 @@ Feature: Atto ordered list button
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 "<ol><li>Have you heard the news everyone's talking"
Then "//textarea[@id='id_description_editor'][starts-with(text(), '<ol><li>') and contains(normalize-space(.), 'Have you heard the news everyone')]" "xpath_element" should exist
@@ -16,5 +16,4 @@ Feature: Atto unordered list button
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 "<ul><li>Things, dogs, clogs"
Then "//textarea[@id='id_description_editor'][starts-with(text(), '<ul><li>') and contains(normalize-space(.), 'Things, dogs, clogs')]" "xpath_element" should exist