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

Add support for setting access restrictions to activity data generators

XMLWordPrintable

      At the moment, to add a access restriction to an activity in Behat test it is required to do it manually:

      Given I am on the "H5P Test" "h5pactivity activity editing" page logged in as teacher1
          And I expand all fieldsets
          And I click on "Add restriction..." "button"
          And I click on "Date" "button" in the "Add restriction..." "dialogue"
          And I set the following fields to these values:
            | Direction | from   |
            | x[day]    | 1      |
            | x[month]  | 1      |
            | x[year]   | <year> |
          And I press "Save and return to course"
      

      The goal of this issue is to implement a custom step for activity restrictions to add restrictions in the backend and convert the manual steps to use the new step to speed up execution. Another reason for implementing this is because these availability tests require to be executed on browser because of @javascript, so converting those steps would also allow to run those tests on Browserkit (NonJS).

            Unassigned Unassigned
            lameze Simey Lameze
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 12 minutes
                12m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.