Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71332

Move activity creation to data generators in Behat

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.6
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      There is lots of places in Behat tests where activity creation 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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ilyatregubov Ilya Tregubov
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: