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

Throw an exception in the behat steps where Javascript loading takes too much time

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Run behat using phantomjs and --tags '@core_group&&~@_only_local'
      2. They SHOULD all pass
      3. Run behat using firefox and --tags '@core_group,@core_filepicker'
      4. They SHOULD all pass
      5. Run behat using chrome and --tags '@core_group,@core_filepicker'
      6. They SHOULD all pass
      Show
      Info to run behat using chrome: https://code.google.com/p/selenium/wiki/ChromeDriver Info to run behat using phantomjs: Download phantomjs binaries: http://phantomjs.org/download.html Run /wherever/you/store/it/bin/phantomjs --webdriver=4444 Run behat using phantomjs and --tags '@core_group&&~@_only_local' They SHOULD all pass Run behat using firefox and --tags '@core_group,@core_filepicker' They SHOULD all pass Run behat using chrome and --tags '@core_group,@core_filepicker' They SHOULD all pass
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-43173_master

      Description

      With MDL-42625 integrated we know when all the page's JS are loaded, we continuously wait until all of them have finished loading, including AJAX calls, and we timeout at 10 seconds.

      We could think that if there is JS that takes up to 10 seconds to load is because there is an issue:

      • JS is broken
      • There is a performance issue

      Probably would be wise to fail the scenario so we can look for the cause and fix it

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Jan/14