Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-51424

Superscript and subscript behat tests occasionally fail

    XMLWordPrintable

Details

    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • wip-mdl-51424
    • Moderate
    • Hide
      • Run below command for few hours to ensure it don't fail.
        while [[ $? -eq 0 ]]; do vendor/bin/behat --config=/home/rajesh/moodles/m/moodledata/postgres_behat/behat/behat.yml --name 'Atto superscript button'; done;
      Show
      Run below command for few hours to ensure it don't fail. while [[ $? -eq 0 ]]; do vendor/bin/behat --config=/home/rajesh/moodles/m/moodledata/postgres_behat/behat/behat.yml --name 'Atto superscript button'; done;

    Description

      I am experiencing up to 4 failures with the behat tests for the atto superscript and subscript behat tests. The failures are:

      (: failed steps (:

      01. "<sub>Submarine</sub>" text was not found in the page
      In step `Then I should see "<sub>Submarine</sub>"'. # behat_general::assert_page_contains_text()
      From scenario `Subscript some text'. # moodle/lib/editor/atto/plugins/subscript/tests/behat/subscript.feature:6
      Of feature `Atto subscript button'. # moodle/lib/editor/atto/plugins/subscript/tests/behat/subscript.feature

      02. "<sub>Submarine</sub>" text was not found in the page
      In step `Then I should see "<sub>Submarine</sub>"'. # behat_general::assert_page_contains_text()
      From scenario `Subscript some text in enclosed in superscript'. # moodle/lib/editor/atto/plugins/subscript/tests/behat/subscript.feature:23
      Of feature `Atto subscript button'. # /home/brianb/Sites/moodletotara/lib/editor/atto/plugins/subscript/tests/behat/subscript.feature

      03. "<sup>Helicopter</sup>" text was not found in the page
      In step `Then I should see "<sup>Helicopter</sup>"'. # behat_general::assert_page_contains_text()
      From scenario `Subscript some text'. # moodle/lib/editor/atto/plugins/superscript/tests/behat/superscript.feature:6
      Of feature `Atto superscript button'. # moodle/lib/editor/atto/plugins/superscript/tests/behat/superscript.feature

      04. "<sup>Helicopter</sup>" text was not found in the page
      In step `Then I should see "<sup>Helicopter</sup>"'. # behat_general::assert_page_contains_text()
      From scenario `Superscript some text that is enclosed in subscript'. # moodle/lib/editor/atto/plugins/superscript/tests/behat/superscript.feature:23
      Of feature `Atto superscript button'. # moodle/lib/editor/atto/plugins/superscript/tests/behat/superscript.feature

      While the failures were not happening every time, the were failing enough for me to track down the cause - the atto editor not updating the master text area all of the time (although I wasn't able to replicate this outside of behat tests) when running in firefox.

      I've replicated it on 2.9, but haven't tried in other versions.

      Attachments

        Issue Links

          Activity

            People

              dthies Daniel Thies
              brianb Brian Barnes
              Rajesh Taneja Rajesh Taneja
              Dan Poltawski Dan Poltawski
              Adrian Greeve Adrian Greeve
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Nov/15