From c2dd5d7bc7d43a253a14d3adaff8c8f2316f50ff Mon Sep 17 00:00:00 2001 From: Michael Hawkins Date: Fri, 30 Apr 2021 20:43:45 +0800 Subject: [PATCH] MDL-71401 mod_lesson: Update completion behat to test individual changes --- mod/lesson/tests/behat/lesson_activity_completion.feature | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod/lesson/tests/behat/lesson_activity_completion.feature b/mod/lesson/tests/behat/lesson_activity_completion.feature index 74254aeff75..ea1dbcee969 100644 --- a/mod/lesson/tests/behat/lesson_activity_completion.feature +++ b/mod/lesson/tests/behat/lesson_activity_completion.feature @@ -75,6 +75,11 @@ Feature: View activity completion in the lesson activity When I am on "Course 1" course homepage And I follow "Music history" And I wait "2" seconds + And I reload the page + And the "View" completion condition of "Music history" is displayed as "done" + And the "Spend at least 1 sec on this activity" completion condition of "Music history" is displayed as "done" + And the "Go through the activity to the end" completion condition of "Music history" is displayed as "todo" + And the "Receive a grade" completion condition of "Music history" is displayed as "todo" And I press "The history of music part 1" And I set the field "Your answer" to "Some drummers play with their sticks flipped around" And I press "Submit"