mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
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:
parent
6296803878
commit
b3a2a33f07
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user