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"
|
30 |
When I am on the "Test lesson name" "lesson activity" page
|
27 |
When I am on the "Test lesson name" "lesson activity" page
|
31 |
And I follow "Add a question page"
|
28 |
And I follow "Add a question page"
|
32 |
And I set the field "Select a question type" to "Multichoice"
|
29 |
And I set the field "Select a question type" to "Multichoice"
|
33 |
And I press "Add a question page"
|
30 |
And I press "Add a question page"
|
Línea 49... |
Línea 46... |
49 |
And I click on "Image" "button" in the "//*[@data-fieldtype='editor']/*[descendant::*[@id='id_answer_editor_2']]" "xpath_element"
|
46 |
And I click on "Image" "button" in the "//*[@data-fieldtype='editor']/*[descendant::*[@id='id_answer_editor_2']]" "xpath_element"
|
50 |
And I click on "Browse repositories" "button"
|
47 |
And I click on "Browse repositories" "button"
|
51 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
48 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
52 |
And I click on "moodle_logo.jpg" "link"
|
49 |
And I click on "moodle_logo.jpg" "link"
|
53 |
And I click on "Select this file" "button"
|
50 |
And I click on "Select this file" "button"
|
54 |
And I set the field "How would you describe this image to someone who can't see it:" to "It's the logo"
|
51 |
And I set the field "How would you describe this image to someone who can't see it?" to "It's the logo"
|
55 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
52 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
56 |
And I press "Save page"
|
53 |
And I press "Save page"
|
57 |
And I set the field "qtype" to "Add a question page"
|
54 |
And I set the field "qtype" to "Add a question page"
|
58 |
And I set the field "Select a question type" to "True/false"
|
55 |
And I set the field "Select a question type" to "True/false"
|
59 |
And I press "Add a question page"
|
56 |
And I press "Add a question page"
|
Línea 69... |
Línea 66... |
69 |
And I click on "Image" "button" in the "//*[@data-fieldtype='editor']/*[descendant::*[@id='id_response_editor_0']]" "xpath_element"
|
66 |
And I click on "Image" "button" in the "//*[@data-fieldtype='editor']/*[descendant::*[@id='id_response_editor_0']]" "xpath_element"
|
70 |
And I click on "Browse repositories" "button"
|
67 |
And I click on "Browse repositories" "button"
|
71 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
68 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
72 |
And I click on "moodle_logo.jpg" "link"
|
69 |
And I click on "moodle_logo.jpg" "link"
|
73 |
And I click on "Select this file" "button"
|
70 |
And I click on "Select this file" "button"
|
74 |
And I set the field "How would you describe this image to someone who can't see it:" to "It's the logo"
|
71 |
And I set the field "How would you describe this image to someone who can't see it?" to "It's the logo"
|
75 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
72 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
76 |
And I press "Save page"
|
73 |
And I press "Save page"
|
77 |
When I am on the "Test lesson name" "lesson activity" page logged in as student1
|
74 |
When I am on the "Test lesson name" "lesson activity" page logged in as student1
|
78 |
Then I should see "What animal is an amphibian?"
|
75 |
Then I should see "What animal is an amphibian?"
|
79 |
And "//*[contains(@class, 'answeroption')]//img[contains(@src, 'pluginfile.php')]" "xpath_element" should exist
|
76 |
And "//*[contains(@class, 'answeroption')]//img[contains(@src, 'pluginfile.php')]" "xpath_element" should exist
|