-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
4.5
-
MOODLE_405_STABLE
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).
- has been marked as being related by
-
MDL-79851 Behat test to confirm H5P activity availability for students can be controlled (Automate MDLQA-14755)
-
- Closed
-