MDL-42625 behat: Make behat pacient
authorDavid Monllao <davidm@moodle.com>
Fri, 29 Nov 2013 02:36:33 +0000 (10:36 +0800)
committerDavid Monllao <davidm@moodle.com>
Mon, 9 Dec 2013 03:08:42 +0000 (11:08 +0800)
commitc1faf86bd11036b53819302bce168ce48a1d86c1
treef6841b0e195a8a2ef7967ff36d590af09ddcfbb9
parent519449c528549a1d7c8765673eb4d5000f802e3f
MDL-42625 behat: Make behat pacient

* When looking for texts inside the page or inside
  other containers we should wait until the elements
  are visible.
* Same when expanding tree nodes.
* Normalizing loops to spin() function using
  behat_base::TIMEOUT and behat_base::EXTENDED_TIMEOUT,
  leaving TIMEOUT for DOM load processes and
  EXTENDED_TIMEOUT for long processes that involves JS
  too.
* Add page load waits between actions that involves
  reloading the page.
backup/util/ui/tests/behat/behat_backup.php
course/tests/behat/behat_course.php
lib/behat/behat_base.php
lib/behat/form_field/behat_form_editor.php
lib/tests/behat/behat_deprecated.php
lib/tests/behat/behat_general.php
lib/tests/behat/behat_hooks.php
lib/tests/behat/behat_navigation.php
mod/assign/tests/behat/file_submission.feature
repository/tests/behat/behat_filepicker.php
repository/upload/tests/behat/behat_repository_upload.php