-
Improvement
-
Resolution: Duplicate
-
Major
-
None
-
2.5, 2.6
-
MOODLE_25_STABLE, MOODLE_26_STABLE
-
MDL-41030-master -
- Run all the behat tests in selenium
- Run all the behat tests (exception file upload ones) in phantomjs (See comments for my phantomjs config).
- Rejoice!
Behat tests requires specific elements to be available in the DOM to interact with them, some of them are added to the DOM through JS (for example the activity chooser links) Right now we wait for the element to be available and after that we interact with it, but having a M.util.pagejsloaded (or whatever globally accessible) would:
- Avoid problems when creating new features, as the availability of the elements would be already managed in a before-step hook
- Allow us to remove some hardcoded "wait x seconds" steps added when there was no other way to ensure an element is available
- Speed up tests executions, as there are less xpath queries to run
The same happens with AJAX requests, right now we just wait hardcoding how much we wait according to the request process time, a M.util.ajaxrequestfinished (if it is only used by behat, with a single var that we can reset it would be enough) Talking with Sam it can be archived with a Y.on('io:end', function_that_sets_the_global_js_var, this, true)
- blocks
-
MDL-42625 Remove behat hardcoded waits
-
- Closed
-
- caused a regression
-
MDL-43707 IE8 JavaScript Error: Object doesn't support this property or method LINE 1 javascript-static.js
-
- Closed
-
- has a non-specific relationship to
-
MDL-42518 Add behat testing for form change checker
-
- Closed
-
- will be (partly) resolved by
-
MDL-42959 Javascript error when uploading a file
-
- Closed
-
- will help resolve
-
MDL-42803 Fix behat random failure in add_scorm.feature
-
- Closed
-
-
MDL-40825 blocks/navigation/tests/behat/view_my_courses.feature fails sometimes when using ultra fast computers like mine
-
- Closed
-