Merge branch 'MDL-77784-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE

This commit is contained in:
Jun Pataleta 2024-08-08 09:47:32 +08:00
commit 5d2ce59559
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7

View File

@ -174,27 +174,24 @@ Feature: Basic use of the Manual grading report
And quiz "Quiz 2" contains the following questions:
| question | page |
| Essay Q1 | 1 |
And I log out
When I am on the "Quiz 2" "mod_quiz > View" page logged in as "student1"
And I press "Attempt quiz"
And I set the field with xpath "//*[contains(concat(' ', @class, ' '), ' editor_atto_content ')]" to "This is my attempt 1"
And I set the field "Answer text Question 1" to "This is my attempt 1"
And I follow "Finish attempt ..."
And I press "Submit all and finish"
And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
And I click on "Finish review" "link"
And I press "Re-attempt quiz"
And I set the field with xpath "//*[contains(concat(' ', @class, ' '), ' editor_atto_content ')]" to "This is my attempt 2"
And I set the field "Answer text Question 1" to "This is my attempt 2"
And I follow "Finish attempt ..."
And I press "Submit all and finish"
And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
And I click on "Finish review" "link"
And I press "Re-attempt quiz"
And I set the field with xpath "//*[contains(concat(' ', @class, ' '), ' editor_atto_content ')]" to "This is my attempt 3"
And I set the field "Answer text Question 1" to "This is my attempt 3"
And I follow "Finish attempt ..."
And I press "Submit all and finish"
And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
And I log out
And I am on the "Quiz 2" "mod_quiz > Manual grading report" page logged in as "teacher1"
And I follow "Also show questions that have been graded automatically"
And I should see "Essay Q1"