Tidy up some behat tests
authorDan Marsden <dan@danmarsden.com>
Wed, 16 Nov 2016 00:39:59 +0000 (13:39 +1300)
committerDan Marsden <dan@danmarsden.com>
Wed, 16 Nov 2016 00:39:59 +0000 (13:39 +1300)
tests/behat/attendance_mod.feature
tests/behat/preferences.feature
tests/behat/report.feature

index 6e3018a..c7c3a11 100644 (file)
@@ -27,8 +27,8 @@ Feature: Teachers and Students can record session attendance
         And I log in as "teacher1"
         And I follow "Course 1"
         And I turn editing mode on
-        And I add a "Attendance" to section "1"
-        And I press "Save and display" 
+        And I add a "Attendance" to section "1" and I fill the form with:
+            | Name        | Attendance       |
         And I log out
 
     Scenario: Students can mark their own attendance
index 0f30cbb..941c287 100644 (file)
@@ -19,8 +19,8 @@ Feature: Teachers can't change status variables to have empty acronyms or descri
         And I log in as "teacher1"
         And I follow "Course 1"
         And I turn editing mode on
-        And I add a "Attendance" to section "1"
-        And I press "Save and display"
+        And I add a "Attendance" to section "1" and I fill the form with:
+            | Name        | Attendance       |
         And I follow "Settings"
 
     @javascript
index c021fd3..58fdbb6 100644 (file)
@@ -18,8 +18,8 @@ Feature: Visiting reports
          And I log in as "teacher1"
          And I follow "Course 1"
          And I turn editing mode on
-        Then I add a "Attendance" to section "1"
-         And I press "Save and display"
+      And I add a "Attendance" to section "1" and I fill the form with:
+        | Name        | Attendance       |
          And I follow "Attendance"
          And I follow "Add session"
          And I set the following fields to these values: