Línea 26... |
Línea 26... |
26 |
| activity | name | intro | course | idnumber | grade |
|
26 |
| activity | name | intro | course | idnumber | grade |
|
27 |
| quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 | 20 |
|
27 |
| quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 | 20 |
|
28 |
And quiz "Quiz 1" contains the following questions:
|
28 |
And quiz "Quiz 1" contains the following questions:
|
29 |
| question | page |
|
29 |
| question | page |
|
30 |
| TF1 | 1 |
|
30 |
| TF1 | 1 |
|
31 |
And the following "blocks" exist:
|
- |
|
32 |
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
- |
|
33 |
| private_files | System | 1 | my-index | side-post |
|
- |
|
34 |
And the following "user private files" exist:
|
31 |
And the following "user private files" exist:
|
35 |
| user | filepath | filename |
|
32 |
| user | filepath |
|
36 |
| teacher1 | mod/quiz/tests/fixtures/moodle_logo.jpg | moodle_logo.jpg |
|
33 |
| teacher1 | mod/quiz/tests/fixtures/moodle_logo.jpg |
|
37 |
And I am on the "Quiz 1" "mod_quiz > View" page logged in as "student1"
|
34 |
And I am on the "Quiz 1" "mod_quiz > View" page logged in as "student1"
|
38 |
And I press "Attempt quiz"
|
35 |
And I press "Attempt quiz"
|
39 |
And I follow "Finish attempt ..."
|
36 |
And I follow "Finish attempt ..."
|
40 |
And I press "Submit all and finish"
|
37 |
And I press "Submit all and finish"
|
41 |
And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
|
38 |
And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
|
Línea 70... |
Línea 67... |
70 |
And I click on the "Image" button for the "Comment" TinyMCE editor
|
67 |
And I click on the "Image" button for the "Comment" TinyMCE editor
|
71 |
And I click on "Browse repositories" "button" in the "Insert image" "dialogue"
|
68 |
And I click on "Browse repositories" "button" in the "Insert image" "dialogue"
|
72 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
69 |
And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
|
73 |
And I click on "moodle_logo.jpg" "link"
|
70 |
And I click on "moodle_logo.jpg" "link"
|
74 |
And I click on "Select this file" "button"
|
71 |
And I click on "Select this file" "button"
|
75 |
And I set the field "How would you describe this image to someone who can't see it:" to "It's the logo"
|
72 |
And I set the field "How would you describe this image to someone who can't see it?" to "It's the logo"
|
76 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
73 |
And I click on "Save" "button" in the "Image details" "dialogue"
|
77 |
And I press "Save" and switch to main window
|
74 |
And I press "Save" and switch to main window
|
78 |
And I switch to the main window
|
75 |
And I switch to the main window
|
79 |
Then I should see "Commented: [It's the logo]" in the ".history table" "css_element"
|
76 |
Then I should see "Commented: [It's the logo]" in the ".history table" "css_element"
|
80 |
And "//img[contains(@src, 'moodle_logo.jpg')]" "xpath_element" should exist in the ".comment" "css_element"
|
77 |
And "//img[contains(@src, 'moodle_logo.jpg')]" "xpath_element" should exist in the ".comment" "css_element"
|