MDL-63614 tests: Perform attempt the old way

The functions being used here only are available for 36_STABLE and up,
so we switch to the old way of performing an attempt.
This commit is contained in:
Eloy Lafuente (stronk7)
2019-02-08 00:13:34 +01:00
parent 2a26069c13
commit 1a20233e7f
+9 -3
View File
@@ -30,9 +30,15 @@ Feature: Award badges based on activity completion
And quiz "Test quiz name" contains the following questions:
| question | page |
| First question | 1 |
And user "student1" has attempted "Test quiz name" with responses:
| slot | response |
| 1 | False |
And I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test quiz name"
And I press "Attempt quiz now"
And I click on "False" "radio" in the "Answer the first question" "question"
And I press "Finish attempt ..."
And I press "Submit all and finish"
And I click on "Submit all and finish" "button" in the "Confirmation" "dialogue"
And I log out
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Badges > Add a new badge" in current page administration