-
Epic
-
Resolution: Unresolved
-
Minor
-
None
-
3.9.6
-
None
-
MOODLE_39_STABLE
-
Improve use of data generators in core behat tests
There is lots of places in Behat tests where data generators are not correctly used.
One example is in activity creation, which should be done in data generators rather then adding them manually like:
And I add a "Assignment" to section "1" and I fill the form with:
|
| Assignment name | Test assignment name 2 |
|
| Description | Submit your online text |
|
| assignsubmission_onlinetext_enabled | 1 |
|
Here are some places
- grade/report/grader/tests/behat/switch_views.feature
- admin/tool/recyclebin/tests/behat/backup_user_data.feature
- admin/tool/recyclebin/tests/behat/basic_functionality.feature
- admin/tool/usertours/tests/behat/tour_filter.feature
- backup/util/ui/tests/behat/restore_moodle2_courses.feature
- blocks/tests/behat/move_blocks.feature
- completion/tests/behat/restrict_activity_by_grade.feature
- completion/tests/behat/restrict_section_availability.feature
- course/tests/behat/activities_group_icons.feature
- course/tests/behat/activities_indentation.feature
- course/tests/behat/activities_visibility_icons.feature
- course/tests/behat/force_group_mode.feature
- course/tests/behat/section_visibility.feature
- course/tests/behat/view_subfolders_inline.feature
- And more...
Bunch of tests have been fixed as part MDL-66431 as they were broken by change it made. But we still need to fix the rest
- has been marked as being related by
-
MDL-70506 Data generator for mod_assign sets incorrect value for submissiondrafts
- Open
-
MDL-70152 Forum behat generators use UI /o\
- Closed
-
MDL-73788 URL behat generators use UI
- Closed
-
MDL-71333 Add Behat step to edit activity settings
- Open
-
MDL-71058 Update behat_permissions to act as data generators
- Development in progress
-
MDL-74130 Behat navigation steps for core question bank
- Closed
- will be (partly) resolved by
-
MDL-66431 Remove "Enable activity chooser" user preference
- Closed