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

Behat Activity creation name matching still not precise enough in non-js case

XMLWordPrintable

    • MOODLE_29_STABLE

      This was originally reported as MDL-50259, but the fix for that didn't solve my actual problem.

      I think it only solved the issue for substrings that didn't exactly match module names. So "Qui" without the "z" would now (correctly) fail as there is no such module with than name. In the case of "Quiz" and the third party module "Adaptive Quiz" both are found in the option list, and so the previous fix allows them to continue. At that point, "Adaptive Quiz" comes first alphabetically, and so any Quiz behat test that doesn't use @javascript will create the wrong type of activity and most likely fail shortly afterwards.

      One example that fails once Adaptive Quiz is installed is mod/quiz/tests/behat/add_quiz.feature

      The actual bug seems to be in the Mink library that Moodle uses (via Behat). I've filed an bug upstream with them.

      https://github.com/minkphp/Mink/issues/692

      But perhaps there is a workaround?

            rajeshtaneja Rajesh Taneja
            bawjaws David Scotson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.