Línea 1... |
Línea 1... |
1 |
@mod @mod_h5pactivity @core_h5p @_file_upload @_switch_iframe
|
1 |
@mod @mod_h5pactivity @core_h5p @_switch_iframe
|
2 |
Feature: Inline editing H5P content
|
2 |
Feature: Inline editing H5P content
|
3 |
In order to edit an existing H5P activity file
|
3 |
In order to edit an existing H5P activity file
|
4 |
As a teacher
|
4 |
As a teacher
|
5 |
I need to see the button and access to the H5P editor
|
5 |
I need to see the button and access to the H5P editor
|
Línea 19... |
Línea 19... |
19 |
| teacher2 | C1 | editingteacher |
|
19 |
| teacher2 | C1 | editingteacher |
|
20 |
| student1 | C1 | student |
|
20 |
| student1 | C1 | student |
|
21 |
And the following "permission overrides" exist:
|
21 |
And the following "permission overrides" exist:
|
22 |
| capability | permission | role | contextlevel | reference |
|
22 |
| capability | permission | role | contextlevel | reference |
|
23 |
| moodle/h5p:updatelibraries | Allow | editingteacher | System | |
|
23 |
| moodle/h5p:updatelibraries | Allow | editingteacher | System | |
|
24 |
And the following "blocks" exist:
|
- |
|
25 |
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
- |
|
26 |
| private_files | System | 1 | my-index | side-post |
|
- |
|
Línea 27... |
Línea 24... |
27 |
|
24 |
|
28 |
@javascript
|
25 |
@javascript
|
29 |
Scenario: Add H5P activity using link to content bank file
|
26 |
Scenario: Add H5P activity using link to content bank file
|
30 |
Given the following "contentbank content" exist:
|
27 |
Given the following "contentbank content" exist:
|
Línea 149... |
Línea 146... |
149 |
And I am on the "H5P package added as copy to content bank" "h5pactivity activity" page logged in as student1
|
146 |
And I am on the "H5P package added as copy to content bank" "h5pactivity activity" page logged in as student1
|
150 |
And I should not see "Edit H5P content"
|
147 |
And I should not see "Edit H5P content"
|
Línea 151... |
Línea 148... |
151 |
|
148 |
|
152 |
@javascript
|
149 |
@javascript
|
153 |
Scenario: Add H5P activity using private user file
|
150 |
Scenario: Add H5P activity using private user file
|
154 |
Given I log in as "teacher1"
|
151 |
Given the following "user private file" exists:
|
155 |
# Upload the H5P to private user files.
|
- |
|
156 |
And I follow "Manage private files..."
|
152 |
| user | teacher1 |
|
157 |
And I upload "h5p/tests/fixtures/greeting-card.h5p" file to "Files" filemanager
|
- |
|
158 |
And I click on "Save changes" "button"
|
153 |
| filepath | h5p/tests/fixtures/greeting-card.h5p |
|
- |
|
154 |
# Create an H5P activity with a private user file.
|
159 |
# Create an H5P activity with a private user file.
|
155 |
When I log in as "teacher1"
|
160 |
And I add an h5pactivity activity to course "Course 1" section "1"
|
156 |
And I add an h5pactivity activity to course "Course 1" section "1"
|
161 |
And I set the following fields to these values:
|
157 |
And I set the following fields to these values:
|
162 |
| Name | H5P package added as private user file |
|
158 |
| Name | H5P package added as private user file |
|
163 |
| Description | Description |
|
159 |
| Description | Description |
|