MDL-69231 behat: remaining work for role capability generator
commit719b351f862028cc6e8a148e885f49256f243bae
authorSimey Lameze <simey@moodle.com>
Mon, 15 May 2023 06:56:28 +0000 (15 14:56 +0800)
committerSimey Lameze <simey@moodle.com>
Fri, 2 Jun 2023 04:45:36 +0000 (2 12:45 +0800)
tree10549457599a1da18d60be02f84aeba3311c7b7c
parentfc2b45f960bf950b7c6fc6a43e246503db6ad59b
MDL-69231 behat: remaining work for role capability generator

This commit does few things:
* Unify data generators usage to role short name.
* Replace remaining manual steps to use the new data generator.
* Also replaced other manual steps to set config to use data generators.
* Tidy up of some tests, aligning pipes and splitting one line steps into multiple lines.
* Fixes tests to have one Given/When/Then per scenario.
32 files changed:
admin/tool/behat/tests/behat/edit_permissions.feature
admin/tool/lp/tests/behat/plan_workflow.feature
admin/tool/monitor/tests/behat/subscription.feature
admin/tool/policy/tests/behat/acceptances.feature
blocks/navigation/tests/behat/participants_link.feature
blocks/tests/behat/restrict_available_blocks.feature
course/tests/behat/course_browsing.feature
course/tests/behat/course_download_content_cm.feature
course/tests/behat/course_download_content_permissions.feature
course/tests/behat/coursetags.feature
course/tests/behat/keyholder.feature
course/tests/behat/restrict_available_activities.feature
course/tests/behat/role_renaming.feature
enrol/self/tests/behat/key_holder.feature
grade/report/grader/tests/behat/switch_views.feature
grade/report/user/tests/behat/user_view.feature
group/tests/behat/delete_groups.feature
group/tests/behat/update_groups.feature
lib/testing/generator/data_generator.php
mod/assign/tests/behat/bulk_remove_submissions.feature
mod/assign/tests/behat/remove_submission.feature
mod/feedback/tests/behat/anonymous.feature
mod/feedback/tests/behat/non_anonymous.feature
mod/quiz/tests/behat/quiz_user_override.feature
question/bank/comment/tests/behat/question_comment.feature
question/bank/viewquestionname/tests/behat/question_in_place_editing.feature
tag/tests/behat/edit_tag.feature
tag/tests/behat/flag_tags.feature
user/tests/behat/enrol_cohort_list.feature
user/tests/behat/filter_participants.feature
user/tests/behat/user_grade_navigation.feature
user/tests/behat/view_preferences_page.feature