MDL-42625 behat: Step definitions + related changes in features
authorDavid Monllao <davidm@moodle.com>
Thu, 31 Oct 2013 07:32:11 +0000 (15:32 +0800)
committerDavid Monllao <davidm@moodle.com>
Fri, 6 Dec 2013 05:10:24 +0000 (13:10 +0800)
commitd1e55a47bed7b0a3724750fbf12d191703763592
treefc58d25fb051222c07be8b3229ebff4705d0e798
parent333db2e9b933d44549a92a0ba718e453d73c678f
MDL-42625 behat: Step definitions + related changes in features

In general aiming for compatibility with multiple browsers,
firefox, chrome and phantomjs to be more specific.

* Removing hardcoded waits
* Adding @_alert, @_switch_window and @_switch_frame tags,
  to label actions that different drivers have problems with.
* Adding missing @_files_upload and @_only_local tags to features that
  uploads files.
* Fixing a few wait for page ready what specified miliseconds.
* New methods to ensure elements (usual selectors), sections and editors
  are ready to interact with
* Changing the select an option implementation to deal with the different
  drivers implementations when listening to JS events.
31 files changed:
admin/tests/behat/behat_admin.php
backup/util/ui/tests/behat/behat_backup.php
backup/util/ui/tests/behat/duplicate_activities.feature
badges/tests/behat/award_badge.feature
blocks/comments/tests/behat/behat_block_comments.php
blog/tests/behat/comment.feature
completion/tests/behat/restrict_activity_by_date.feature
completion/tests/behat/restrict_activity_by_grade.feature
course/tests/behat/add_activities.feature
course/tests/behat/behat_course.php
course/tests/behat/course_category_management_listing.feature
course/tests/behat/course_controls.feature
group/tests/behat/behat_groups.php
group/tests/behat/groups_import.feature
lib/behat/behat_base.php
lib/behat/behat_files.php
lib/behat/form_field/behat_form_editor.php
lib/behat/form_field/behat_form_field.php
lib/behat/form_field/behat_form_select.php
lib/editor/tinymce/tests/behat/edit_available_icons.feature
lib/tests/behat/behat_forms.php
lib/tests/behat/behat_general.php
lib/tests/behat/behat_hooks.php
lib/tests/behat/behat_permissions.php
mod/scorm/tests/behat/add_scorm.feature
mod/wiki/tests/behat/preview_page.feature
question/tests/behat/behat_question.php
question/tests/behat/edit_questions.feature
question/tests/behat/preview_question.feature
repository/tests/behat/behat_filepicker.php
repository/upload/tests/behat/behat_repository_upload.php