-
Bug
-
Resolution: Fixed
-
Major
-
3.5
-
MOODLE_35_STABLE
-
MOODLE_35_STABLE
-
MDL-61252-master -
- Wait for a time/date with a consistent 3 in it - e.g. 12:30, 13:00, 03:00, 23:00, 23/01/2018, etc.
- Run behat against mod/quiz/tests/behat/manually_mark_question.feature:62
MDL-41090 introduced a new functionality which allows for embedding of files in response contents.
Unfortunately the test for this causes random behat failures.
The offending line is:
And I should see "It's the logo" in the "3" "table_row"
|
This fails because behat does not perform strict lookups, so when searching for the "3" "table_row", it returns any table row which contains the number three.
If, for example, you run the test at 03:00, or 13:00, then any row with the current time in it will match.
The check above only checks the first result. In this case it's the "Started on Friday, 19 January 2018, 5:13AM" row, hence the failure.
Whilst I would love to change this to be a strict match, that's easier said than done and would break a great many tests.
- is a regression caused by
-
MDL-41090 Allow teachers to embed files when manually grading questions
- Closed