Línea 40... |
Línea 40... |
40 |
| user | teacher1 |
|
40 |
| user | teacher1 |
|
41 |
| filepath | h5p/tests/fixtures/greeting-card.h5p |
|
41 |
| filepath | h5p/tests/fixtures/greeting-card.h5p |
|
42 |
# Add H5P content to the page.
|
42 |
# Add H5P content to the page.
|
43 |
And I am on the "PageName1" "page activity" page logged in as "teacher1"
|
43 |
And I am on the "PageName1" "page activity" page logged in as "teacher1"
|
44 |
And I navigate to "Settings" in current page administration
|
44 |
And I navigate to "Settings" in current page administration
|
45 |
And I click on "Configure H5P content" "button" in the "#fitem_id_page" "css_element"
|
45 |
And I click on "Insert H5P content" "button" in the "#fitem_id_page" "css_element"
|
46 |
And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue"
|
46 |
And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue"
|
47 |
And I select "Private files" repository in file picker
|
47 |
And I select "Private files" repository in file picker
|
48 |
And I click on "greeting-card.h5p" "file" in repository content area
|
48 |
And I click on "greeting-card.h5p" "file" in repository content area
|
49 |
And I click on "Link to the file" "radio"
|
49 |
And I click on "Link to the file" "radio"
|
50 |
And I click on "Select this file" "button"
|
50 |
And I click on "Select this file" "button"
|
Línea 84... |
Línea 84... |
84 |
Scenario: Edit H5P content from a page using link to content bank file
|
84 |
Scenario: Edit H5P content from a page using link to content bank file
|
85 |
Given I am on the "C1" "Course" page logged in as "admin"
|
85 |
Given I am on the "C1" "Course" page logged in as "admin"
|
86 |
# Add H5P content to the page.
|
86 |
# Add H5P content to the page.
|
87 |
And I am on the "PageName1" "page activity" page
|
87 |
And I am on the "PageName1" "page activity" page
|
88 |
And I navigate to "Settings" in current page administration
|
88 |
And I navigate to "Settings" in current page administration
|
89 |
And I click on "Configure H5P content" "button" in the "#fitem_id_page" "css_element"
|
89 |
And I click on "Insert H5P content" "button" in the "#fitem_id_page" "css_element"
|
90 |
And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue"
|
90 |
And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue"
|
91 |
And I select "Content bank" repository in file picker
|
91 |
And I select "Content bank" repository in file picker
|
92 |
And I click on "Greeting card" "file" in repository content area
|
92 |
And I click on "Greeting card" "file" in repository content area
|
93 |
And I click on "Link to the file" "radio"
|
93 |
And I click on "Link to the file" "radio"
|
94 |
And I click on "Select this file" "button"
|
94 |
And I click on "Select this file" "button"
|
Línea 128... |
Línea 128... |
128 |
Scenario: Edit H5P content from a page using copy to content bank file
|
128 |
Scenario: Edit H5P content from a page using copy to content bank file
|
129 |
Given I am on the "C1" "Course" page logged in as "admin"
|
129 |
Given I am on the "C1" "Course" page logged in as "admin"
|
130 |
# Add H5P content to the page.
|
130 |
# Add H5P content to the page.
|
131 |
And I am on the "PageName1" "page activity" page
|
131 |
And I am on the "PageName1" "page activity" page
|
132 |
And I navigate to "Settings" in current page administration
|
132 |
And I navigate to "Settings" in current page administration
|
133 |
And I click on "Configure H5P content" "button" in the "#fitem_id_page" "css_element"
|
133 |
And I click on "Insert H5P content" "button" in the "#fitem_id_page" "css_element"
|
134 |
And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue"
|
134 |
And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue"
|
135 |
And I select "Content bank" repository in file picker
|
135 |
And I select "Content bank" repository in file picker
|
136 |
And I click on "Greeting card" "file" in repository content area
|
136 |
And I click on "Greeting card" "file" in repository content area
|
137 |
And I click on "Make a copy of the file" "radio"
|
137 |
And I click on "Make a copy of the file" "radio"
|
138 |
And I click on "Select this file" "button"
|
138 |
And I click on "Select this file" "button"
|
Línea 174... |
Línea 174... |
174 |
| allowedsources | https://moodle.h5p.com/content/[id] | filter_displayh5p |
|
174 |
| allowedsources | https://moodle.h5p.com/content/[id] | filter_displayh5p |
|
175 |
And I am on the "C1" "Course" page logged in as "admin"
|
175 |
And I am on the "C1" "Course" page logged in as "admin"
|
176 |
# Add H5P content to the page.
|
176 |
# Add H5P content to the page.
|
177 |
And I am on the "PageName1" "page activity" page
|
177 |
And I am on the "PageName1" "page activity" page
|
178 |
And I navigate to "Settings" in current page administration
|
178 |
And I navigate to "Settings" in current page administration
|
179 |
And I click on "Configure H5P content" "button" in the "#fitem_id_page" "css_element"
|
179 |
And I click on "Insert H5P content" "button" in the "#fitem_id_page" "css_element"
|
180 |
And I set the field "H5P URL or file upload" to "https://moodle.h5p.com/content/1290772960722742119"
|
180 |
And I set the field "H5P URL or file upload" to "https://moodle.h5p.com/content/1290772960722742119"
|
181 |
And I click on "Insert H5P" "button" in the "Insert H5P content" "dialogue"
|
181 |
And I click on "Insert H5P" "button" in the "Insert H5P content" "dialogue"
|
182 |
And I click on "Save and display" "button"
|
182 |
And I click on "Save and display" "button"
|
183 |
And ".h5p-placeholder" "css_element" should exist
|
183 |
And ".h5p-placeholder" "css_element" should exist
|
184 |
And I switch to "h5pcontent" iframe
|
184 |
And I switch to "h5pcontent" iframe
|
Línea 217... |
Línea 217... |
217 |
And I turn editing mode on
|
217 |
And I turn editing mode on
|
218 |
And I add the "Text" block to the default region with:
|
218 |
And I add the "Text" block to the default region with:
|
219 |
| Text block title | H5PTest |
|
219 |
| Text block title | H5PTest |
|
220 |
| Content | - |
|
220 |
| Content | - |
|
221 |
And I configure the "H5PTest" block
|
221 |
And I configure the "H5PTest" block
|
222 |
And I click on "Configure H5P content" "button" in the "//div[contains(@id,'fitem_id_config_text')]" "xpath_element"
|
222 |
And I click on "Insert H5P content" "button" in the "//div[contains(@id,'fitem_id_config_text')]" "xpath_element"
|
223 |
And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue"
|
223 |
And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue"
|
224 |
And I select "Content bank" repository in file picker
|
224 |
And I select "Content bank" repository in file picker
|
225 |
And I click on "Greeting card" "file" in repository content area
|
225 |
And I click on "Greeting card" "file" in repository content area
|
226 |
And I click on "Make a copy of the file" "radio"
|
226 |
And I click on "Make a copy of the file" "radio"
|
227 |
And I click on "Select this file" "button"
|
227 |
And I click on "Select this file" "button"
|