From: Dan Marsden Date: Wed, 16 Nov 2016 09:27:47 +0000 (+1300) Subject: try to fix behat tests. X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=cc8ce7dbb150e065d2955fe6b0f0ceb7760cbd34;p=moodle-mod_attendance.git try to fix behat tests. --- diff --git a/tests/behat/calendar_features.feature b/tests/behat/calendar_features.feature index 8dbe24e..d325233 100644 --- a/tests/behat/calendar_features.feature +++ b/tests/behat/calendar_features.feature @@ -30,9 +30,9 @@ Feature: Test the calendar related features in the attendance module | id_sestime_endhour | 02 | And I click on "id_submitbutton" "button" And I follow "Course 1" - And I follow "Calendar" + And I follow "This month" Then I should see "Test attendance" And I log out And I log in as "student1" - And I follow "Calendar" + And I follow "This month" Then I should see "Test attendance" \ No newline at end of file diff --git a/tests/behat/preferences.feature b/tests/behat/preferences.feature index 941c287..623adb4 100644 --- a/tests/behat/preferences.feature +++ b/tests/behat/preferences.feature @@ -20,8 +20,9 @@ Feature: Teachers can't change status variables to have empty acronyms or descri And I follow "Course 1" And I turn editing mode on And I add a "Attendance" to section "1" and I fill the form with: - | Name | Attendance | - And I follow "Settings" + | Name | Attendancepreftest | + And I follow "Attendancepreftest" + And I follow "Edit settings" @javascript Scenario: Teachers can add status variables