From 548b707034dfe6f1c8cc6920191f900c78f23012 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Wed, 14 Dec 2016 09:59:46 +0800 Subject: [PATCH] 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 --- .../atto/plugins/orderedlist/tests/behat/orderedlist.feature | 3 +-- .../plugins/unorderedlist/tests/behat/unorderedlist.feature | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/editor/atto/plugins/orderedlist/tests/behat/orderedlist.feature b/lib/editor/atto/plugins/orderedlist/tests/behat/orderedlist.feature index 65393cb829c..6c0dbd2b1ab 100644 --- a/lib/editor/atto/plugins/orderedlist/tests/behat/orderedlist.feature +++ b/lib/editor/atto/plugins/orderedlist/tests/behat/orderedlist.feature @@ -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 "
  1. Have you heard the news everyone's talking" - + Then "//textarea[@id='id_description_editor'][starts-with(text(), '
    1. ') and contains(normalize-space(.), 'Have you heard the news everyone')]" "xpath_element" should exist diff --git a/lib/editor/atto/plugins/unorderedlist/tests/behat/unorderedlist.feature b/lib/editor/atto/plugins/unorderedlist/tests/behat/unorderedlist.feature index 8dcf84fddbc..0c8588cbd47 100644 --- a/lib/editor/atto/plugins/unorderedlist/tests/behat/unorderedlist.feature +++ b/lib/editor/atto/plugins/unorderedlist/tests/behat/unorderedlist.feature @@ -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 "
      • Things, dogs, clogs" - + Then "//textarea[@id='id_description_editor'][starts-with(text(), '
        • ') and contains(normalize-space(.), 'Things, dogs, clogs')]" "xpath_element" should exist