diff --git a/mod/lesson/tests/behat/lesson_activity_completion.feature b/mod/lesson/tests/behat/lesson_activity_completion.feature index 6747e18469e29..fb53a4e9abcef 100644 --- a/mod/lesson/tests/behat/lesson_activity_completion.feature +++ b/mod/lesson/tests/behat/lesson_activity_completion.feature @@ -27,7 +27,7 @@ Feature: View activity completion in the lesson activity | completionusegrade | 1 | | completionendreached | 1 | | completiontimespentenabled | 1 | - | completiontimespent | 1 | + | completiontimespent | 3 | And I am on the "Music history" "lesson activity" page logged in as teacher1 And I follow "Add a content page" And I set the following fields to these values: @@ -49,28 +49,28 @@ Feature: View activity completion in the lesson activity Scenario: View automatic completion items as a teacher When I am on the "Music history" "lesson activity" page logged in as teacher1 Then "Music history" should have the "View" completion condition - And "Music history" should have the "Spend at least 1 sec on this activity" completion condition + And "Music history" should have the "Spend at least 3 secs on this activity" completion condition And "Music history" should have the "Go through the activity to the end" completion condition And "Music history" should have the "Receive a grade" completion condition Scenario: View automatic completion items as a student Given I am on the "Music history" "lesson activity" page logged in as student1 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 "todo" + And the "Spend at least 3 secs on this activity" completion condition of "Music history" is displayed as "todo" 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" When I am on the "Music history" "lesson activity" page - And I wait "2" seconds + And I wait "4" 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 "Spend at least 3 secs 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" Then 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 "Spend at least 3 secs 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 "done" And the "Receive a grade" completion condition of "Music history" is displayed as "done"