From 6e4fe9afe05eac79a00081cef0a237fc3e271ae4 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Thu, 27 Sep 2018 09:58:38 +0800 Subject: [PATCH] MDL-63185 mod_quiz: convert responses report behat to use new step Part of MDL-62610 --- .../report/responses/tests/behat/basic.feature | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/mod/quiz/report/responses/tests/behat/basic.feature b/mod/quiz/report/responses/tests/behat/basic.feature index d1e86bfbf77..2dd5f772c2a 100644 --- a/mod/quiz/report/responses/tests/behat/basic.feature +++ b/mod/quiz/report/responses/tests/behat/basic.feature @@ -42,12 +42,17 @@ Feature: Basic use of the Responses report And I set the field "Attempts from" to "enrolled users who have not attempted the quiz" And I press "Show report" And "Student One" row "State" column of "responses" table should contain "-" - And user "student1" has attempted "Quiz 1" with responses: + And user "student1" has started an attempt at quiz "Quiz 1" + And user "student1" has submitted answers in their attempt at quiz "Quiz 1": | slot | response | - | 1 | 1.0 | - | 1 | 3.0 | - | 1 | 3.14 | - And I reload the page + | 1 | 1.0 | + And user "student1" has submitted answers in their attempt at quiz "Quiz 1": + | slot | response | + | 1 | 3.0 | + And user "student1" has submitted answers in their attempt at quiz "Quiz 1": + | slot | response | + | 1 | 3.14 | + And user "student1" has finished an attempt at quiz "Quiz 1" Then I should see "Attempts: 1" And I should see "Student One" And I should not see "Student Two"