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

Random behat failure in scenario "Student answers questions and then reviews them"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.5, 3.8, 3.9
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      Happens rarely twice, specially with Oracle (slow?) although it has been detectes also with other databases. It's goutte one, so no JS "evil" around

      The scenario is lesson's "Student answers questions and then reviews them"

      Link: https://ci.moodle.org/job/S37.02.05%20-%20Behat%20-%20Goutte%20+%20Oracle/185/

      001 Scenario: Student answers questions and then reviews them.            # /var/www/html/mod/lesson/tests/behat/lesson_review.feature:7
            And I should see "You have answered 2 correctly out of 3 attempts." # /var/www/html/mod/lesson/tests/behat/lesson_review.feature:83
              "You have answered 2 correctly out of 3 attempts." text was not found in the page
              
              +--[ HTTP/1.1 200 | http://run9258c67bf5cb18ae/behatrun1/mod/lesson/view.php | GoutteDriver ]
              |
              |  <!DOCTYPE html>
              |  
              |  <html  dir="ltr" lang="en" xml:lang="en">
              |  <head>
              |      <title>C1: Test lesson name: Congratulations - end of lesson reached</title>
              |      <link rel="shortcut icon" href="http://run9258c67bf5cb18ae/behatrun1/theme/image.php/boost/theme/1583524764/favicon" />
              |      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              |  <meta name="keywords" content="moodle, C1: Test lesson name: Congratulations - end of lesson reached" />
              |  <link rel="stylesheet" type="text/css" href="http://run9258c67bf5cb18ae/behatrun1/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.css" /><script id="firstthemesheet" type="text/css">/** Required in order to fix style inclusion problems in IE with YUI **/</script><link rel="stylesheet" type="text/css" href="http://run9258c67bf5cb18ae/behatrun1/theme/styles.php/boost/1583524764_1/all" />
              |  <script type="text/javascript">
              |  //<![CDATA[
              |  var M = {}; M.yui = {};
              |  M.pageloadstarttime = new Date();
              |  M.cfg = {"wwwroot":"http:\/\/run9258c67bf5cb18ae\/beh...
              |
       
      1 scenario (1 failed)
      42 steps (39 passed, 1 failed, 2 skipped)
      0m18.63s (47.74Mb)
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            stronk7 Eloy Lafuente (stronk7)
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: