From b3a2a33f079ace73636db0de5b1313af56764b21 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Wed, 14 Dec 2016 09:37:35 +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 548d9c21c3a..0eddcfacdc6 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 click on "Edit profile" "link" in the "region-main" "region" - 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 fdaaa7c7e3c..545ed08d7a0 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 click on "Edit profile" "link" in the "region-main" "region" - 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