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

Fix random timing regression in "Any day / month / year combination in date form elements works ok"

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Peer reviewer:
              Sara Arjona (@sarjona)
              Integrator:
              Jun Pataleta
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 36 minutes
                  1h 36m