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

pendingPromise in form-autocomplete is inside out

    XMLWordPrintable

    Details

      Description

      In the blur event for form-autocomplete we create a pendingPromise to ensure that behat does not move on to a next step.
      However we are then adding .then conditions to that promise.

      Unfortunately that means that we complete the M.util.js_complete before we actually select the item or close the list.

      It's not a major bug, but it could theoretically cause some random failures and we should fix it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dobedobedoh Andrew Nicols
                Reporter:
                dobedobedoh Andrew Nicols
                Peer reviewer:
                Shamim Rezaie
                Integrator:
                Eloy Lafuente (stronk7)
                Tester:
                CiBoT
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, 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:
                  9/Sep/19

                  Time Tracking

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