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

The behat 'I wait "x" seconds' step unnecessarily requires JS

    XMLWordPrintable

    Details

      Description

      At the moment this step passes straight to the getSession()->wait(), which waits for x-thousand milliseconds and then runs a piece of JS. This meanst hat if you need to wait, you need JS.

      This step is used in several places to wait for a timeout to expire (e.g. badges + forum maxedit time). In these cases, not only are we waiting for 61+ seconds, we're also requiring JS in order to do so.

      We should have a non-JS fallback of using PHP sleep instead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dobedobedoh Andrew Nicols
                Reporter:
                dobedobedoh Andrew Nicols
                Peer reviewer:
                Rajesh Taneja
                Integrator:
                David Monllaó
                Tester:
                CiBoT
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Sep/15