-
Task
-
Resolution: Fixed
-
Minor
-
3.9.6, 3.10.3, 3.11, 4.0
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
In MDL-71264 it was changed how date-time form fields are filled in order to avoid some random problems with forms JS sort of "autofixing" dates when some day/month/year combination is not valid.
The changes were backup by the "Any day / month / year combination in date form elements works ok" feature that basically tests all problematic situations.
One of the examples in that feature is randomly failing:
Started at 14-04-2021, 05:02
|
.........F
|
|
--- Failed steps:
|
|
001 Example: | ##tomorrow## | ##now## | ##now##%A, %d %B %Y, %I:%M## | | # /var/www/html/lib/tests/behat/datetime_any.feature:27
|
Then I should see "##now##%A, %d %B %Y, %I:%M##" in the "Due date" "table_row" # /var/www/html/lib/tests/behat/datetime_any.feature:22
|
"Wednesday, 14 April 2021, 5:03" text was not found in the "Due date" element (Behat\Mink\Exception\ExpectationException)
|
This is issue is about fix that random failure.