MDL-63765 behat: Fix behat tests opening a menu
authorDamyon Wiese <damyon@moodle.com>
Thu, 25 Oct 2018 08:59:50 +0000 (16:59 +0800)
committerDamyon Wiese <damyon@moodle.com>
Fri, 26 Oct 2018 08:14:41 +0000 (16:14 +0800)
commitcfd390ee948b4944e9cd6e8176fdcfa175d8ca1c
treed301ff4e0827afa8ac08306d93d46ef0aacb4a17
parentdaf0b4f08be69c34550f9df47cef43b17473c372
MDL-63765 behat: Fix behat tests opening a menu

If javascript is disabled, we don't need to open the menus at all. If it is enabled
we should use the custom step where possible.

In some tests (user profile) we have to use link_or_button because
the element that opens the menu will be a link or a button in different themes.
24 files changed:
admin/tool/dataprivacy/tests/behat/datadelete.feature
admin/tool/dataprivacy/tests/behat/dataexport.feature
admin/tool/dataprivacy/tests/behat/manage_categories.feature
admin/tool/dataprivacy/tests/behat/manage_data_requests.feature
admin/tool/dataprivacy/tests/behat/manage_purposes.feature
admin/tool/policy/tests/behat/acceptances.feature
admin/tool/policy/tests/behat/managepolicies.feature
admin/tool/usertours/tests/behat/tour_accessibility.feature
course/tests/behat/course_category_management_listing.feature
course/tests/behat/course_change_visibility.feature
course/tests/behat/course_creation.feature
course/tests/behat/course_resort.feature
grade/tests/behat/grade_category_validation.feature
grade/tests/behat/grade_grade_minmax_change.feature
grade/tests/behat/grade_item_validation.feature
grade/tests/behat/grade_scales_aggregation.feature
mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature
mod/assign/feedback/editpdf/tests/behat/view_previous_annotations.feature
mod/assign/tests/behat/edit_student_submission.feature
mod/assign/tests/behat/grant_extension.feature
mod/assign/tests/behat/prevent_submission_changes.feature
mod/assign/tests/behat/reopen_locked_submission.feature
mod/quiz/tests/behat/editing_repaginate.feature
mod/quiz/tests/behat/editing_section_headings.feature