Browse Source

Tests: check exercise result.

jmontoyaa 8 years ago
parent
commit
307f1996ce
1 changed files with 11 additions and 0 deletions
  1. 11 0
      tests/behat/features/exercise.feature

+ 11 - 0
tests/behat/features/exercise.feature

@@ -65,8 +65,19 @@ Feature: Exercise tool
     Then I follow "Next question"
     And wait for the page to be loaded
     And I check the "Answer true" radio button
+    And wait for the page to be loaded
     Then I follow "End test"
     Then I should see "Score for the test: 100 / 100"
+#
+  Scenario: Check exercise result
+    Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
+    And I follow "Exercise 1"
+    And I follow "Edit"
+    And I follow "Results and feedback"
+    Then I should see "Learner score"
+    And wait for the page to be loaded
+    And I follow "Grade activity"
+    Then I should see "Score for the test: 100 / 100"
 
   Scenario: Delete an exercise
     Given I am on "/main/exercise/exercise.php?cidReq=TEMP"