Línea 18... |
Línea 18... |
18 |
| student1 | C1 | student |
|
18 |
| student1 | C1 | student |
|
19 |
And the following "activity" exists:
|
19 |
And the following "activity" exists:
|
20 |
| course | C1 |
|
20 |
| course | C1 |
|
21 |
| activity | lesson |
|
21 |
| activity | lesson |
|
22 |
| name | Test lesson name |
|
22 |
| name | Test lesson name |
|
23 |
And the following "blocks" exist:
|
- |
|
24 |
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
- |
|
25 |
| private_files | System | 1 | my-index | side-post |
|
- |
|
26 |
And the following "user private files" exist:
|
23 |
And the following "user private files" exist:
|
27 |
| user | filepath | filename |
|
24 |
| user | filepath |
|
28 |
| teacher1 | mod/lesson/tests/fixtures/moodle_logo.jpg | moodle_logo.jpg |
|
25 |
| teacher1 | mod/lesson/tests/fixtures/moodle_logo.jpg |
|
29 |
And I log in as "teacher1"
|
26 |
And I log in as "teacher1"
|
Línea 30... |
Línea 27... |
30 |
|
27 |
|
31 |
Scenario: Duplicate content page with an image.
|
28 |
Scenario: Duplicate content page with an image.
|
32 |
When I am on the "Test lesson name" "lesson activity" page
|
29 |
When I am on the "Test lesson name" "lesson activity" page
|
Línea 41... |
Línea 38... |
41 |
And I click on "Image" "button" in the "Page contents" "form_row"
|
38 |
And I click on "Image" "button" in the "Page contents" "form_row"
|
42 |
And I click on "Browse repositories" "button"
|
39 |
And I click on "Browse repositories" "button"
|
43 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
40 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
44 |
And I click on "moodle_logo.jpg" "link"
|
41 |
And I click on "moodle_logo.jpg" "link"
|
45 |
And I click on "Select this file" "button"
|
42 |
And I click on "Select this file" "button"
|
46 |
And I set the field "How would you describe this image to someone who can't see it:" to "It's the logo"
|
43 |
And I set the field "How would you describe this image to someone who can't see it?" to "It's the logo"
|
47 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
44 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
48 |
And I press "Save page"
|
45 |
And I press "Save page"
|
49 |
And I follow "Duplicate page: First page name"
|
46 |
And I follow "Duplicate page: First page name"
|
50 |
Then I should see "Inserted page: First page name"
|
47 |
Then I should see "Inserted page: First page name"
|
51 |
And I follow "Update page: First page name"
|
48 |
And I follow "Update page: First page name"
|
Línea 75... |
Línea 72... |
75 |
And I click on "Image" "button" in the "//*[@id='id_answer_editor_0']/ancestor::*[@data-fieldtype='editor']" "xpath_element"
|
72 |
And I click on "Image" "button" in the "//*[@id='id_answer_editor_0']/ancestor::*[@data-fieldtype='editor']" "xpath_element"
|
76 |
And I click on "Browse repositories" "button"
|
73 |
And I click on "Browse repositories" "button"
|
77 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
74 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
78 |
And I click on "moodle_logo.jpg" "link"
|
75 |
And I click on "moodle_logo.jpg" "link"
|
79 |
And I click on "Select this file" "button"
|
76 |
And I click on "Select this file" "button"
|
80 |
And I set the field "How would you describe this image to someone who can't see it:" to "It's the logo"
|
77 |
And I set the field "How would you describe this image to someone who can't see it?" to "It's the logo"
|
81 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
78 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
82 |
And I press "Save page"
|
79 |
And I press "Save page"
|
83 |
And I follow "Duplicate page: True false with an image in the answer"
|
80 |
And I follow "Duplicate page: True false with an image in the answer"
|
84 |
Then I should see "Inserted page: True false with an image in the answer"
|
81 |
Then I should see "Inserted page: True false with an image in the answer"
|
85 |
And I follow "Update page: True false with an image in the answer"
|
82 |
And I follow "Update page: True false with an image in the answer"
|
Línea 112... |
Línea 109... |
112 |
And I click on "Image" "button" in the "//*[@id='id_response_editor_0']/ancestor::*[@data-fieldtype='editor']" "xpath_element"
|
109 |
And I click on "Image" "button" in the "//*[@id='id_response_editor_0']/ancestor::*[@data-fieldtype='editor']" "xpath_element"
|
113 |
And I click on "Browse repositories" "button"
|
110 |
And I click on "Browse repositories" "button"
|
114 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
111 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
115 |
And I click on "moodle_logo.jpg" "link"
|
112 |
And I click on "moodle_logo.jpg" "link"
|
116 |
And I click on "Select this file" "button"
|
113 |
And I click on "Select this file" "button"
|
117 |
And I set the field "How would you describe this image to someone who can't see it:" to "It's the logo"
|
114 |
And I set the field "How would you describe this image to someone who can't see it?" to "It's the logo"
|
118 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
115 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
119 |
And I press "Save page"
|
116 |
And I press "Save page"
|
120 |
And I follow "Duplicate page: True false with an image in the feedback"
|
117 |
And I follow "Duplicate page: True false with an image in the feedback"
|
121 |
Then I should see "Inserted page: True false with an image in the feedback"
|
118 |
Then I should see "Inserted page: True false with an image in the feedback"
|
122 |
And I follow "Update page: True false with an image in the feedback"
|
119 |
And I follow "Update page: True false with an image in the feedback"
|