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:37:35 +08:00
parent 6296803878
commit b3a2a33f07
No known key found for this signature in database
GPG Key ID: B363F7FB787F80E4
2 changed files with 2 additions and 4 deletions

View File

@ -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 click on "Edit profile" "link" in the "region-main" "region"
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

View File

@ -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 click on "Edit profile" "link" in the "region-main" "region"
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