From cc8ce7dbb150e065d2955fe6b0f0ceb7760cbd34 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 16 Nov 2016 22:27:47 +1300 Subject: [PATCH] try to fix behat tests. --- tests/behat/calendar_features.feature | 4 ++-- tests/behat/preferences.feature | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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