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

Behat on Chrome may silently ignore exceptions

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Checkout 8bd563e
      2. Configure behat to run with Chrome
      3. Use
        • chromedriver version: 2.14
        • Chrome should be up-to-date (44.0),
        • Selenium 2.48.2
      4. Run behat --name "Set a valid grade to pass for glossary activity"
      Show
      Checkout 8bd563e Configure behat to run with Chrome Use chromedriver version: 2.14 Chrome should be up-to-date (44.0), Selenium 2.48.2 Run behat --name "Set a valid grade to pass for glossary activity"
    • Affected Branches:
      MOODLE_30_STABLE

      Description

      To reproduce:

      1. Checkout 8bd563e
      2. Configure behat to run with Chrome
      3. Use
        • chromedriver version: 2.14
        • Chrome should be up-to-date (44.0),
        • Selenium 2.48.2
      4. Run behat --name "Set a valid grade to pass for glossary activity"

      Actual

      • The test passes

      Expected

      • The test fails at:

      .....................F--
       
      (::) failed steps (::)
       
      01. Moodle exception: Coding error detected, it must be fixed by a programmer: moodle_database::get_in_or_equal() does not accept empty arrays More information about this error
          
          Debug info:
           
          Error code: codingerror
          
          Stack trace:
           
          line 703 of /lib/dml/moodle_database.php: coding_exception thrown
          line 545 of /rating/lib.php: call to moodle_database->get_in_or_equal()
          line 444 of /mod/glossary/view.php: call to rating_manager->get_ratings()
          In step `And I follow "Test Glossary 1"'.                        # behat_general::click_link()
          From scenario `Set a valid grade to pass for glossary activity'. # /home/fred/www/repositories/im/moodle/grade/tests/behat/grade_to_pass.feature:234
          Of feature `We can set the grade to pass value'.                 # /home/fred/www/repositories/im/moodle/grade/tests/behat/grade_to_pass.feature
       
      1 scenario (1 failed)
      24 steps (21 passed, 2 skipped, 1 failed)
      0m39.031s
      

      The failure above was seen using Firefox.

      Noticed in MDL-49231.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rajeshtaneja Rajesh Taneja
              Reporter:
              fred Frédéric Massart
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: