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

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • Hide

      CiBoT should be enough.

      This has been already run 300 times spreading over a few hours and got zero failures (when previously it was reproducible with just a few repetitions).

      Show
      CiBoT should be enough. This has been already run 300 times spreading over a few hours and got zero failures (when previously it was reproducible with just a few repetitions).

      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.

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Jun Pataleta Jun Pataleta
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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