From 2c908ec30b4eb2b2edcb8bfee87b8a2c5ae76995 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 6 Jan 2015 10:04:37 +0800 Subject: [PATCH] MDL-20304 lesson: Uncomment tests following MDL-48631 --- .../tests/behat/lesson_practice.feature | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/mod/lesson/tests/behat/lesson_practice.feature b/mod/lesson/tests/behat/lesson_practice.feature index 9b077fb23fe..653043f7b34 100644 --- a/mod/lesson/tests/behat/lesson_practice.feature +++ b/mod/lesson/tests/behat/lesson_practice.feature @@ -74,24 +74,23 @@ Feature: Practice mode in a lesson activity And I navigate to "Grades" node in "Course administration" And I should not see "Practice lesson" - # TODO: uncomment this when MDL-48631 is resolved. - #@javascript - #Scenario: Practice lesson with scale doesn't record grades in the gradebook - # Given I follow "Test lesson name" - # And I navigate to "Edit settings" node in "Lesson administration" - # And I set the following fields to these values: - # | Name | Practice lesson with scale | - # | Description | This lesson will NOT affect your course grade | - # | Practice lesson | Yes | - # | Type | Scale | - # And I press "Save and display" - # And I log out - # When I log in as "student1" - # And I follow "Course 1" - # And I follow "Practice lesson with scale" - # And I set the following fields to these values: - # | True | 1 | - # And I press "Submit" - # Then I should not see "View grades" - # And I navigate to "Grades" node in "Course administration" - # And I should not see "Practice lesson with scale" + @javascript + Scenario: Practice lesson with scale doesn't record grades in the gradebook + Given I follow "Test lesson name" + And I navigate to "Edit settings" node in "Lesson administration" + And I set the following fields to these values: + | Name | Practice lesson with scale | + | Description | This lesson will NOT affect your course grade | + | Practice lesson | Yes | + | Type | Scale | + And I press "Save and display" + And I log out + When I log in as "student1" + And I follow "Course 1" + And I follow "Practice lesson with scale" + And I set the following fields to these values: + | True | 1 | + And I press "Submit" + Then I should not see "View grades" + And I navigate to "Grades" node in "Course administration" + And I should not see "Practice lesson with scale"