diff --git a/tests/behat/defaultstatus.feature b/tests/behat/defaultstatus.feature index ef0176e..63b2ab4 100644 --- a/tests/behat/defaultstatus.feature +++ b/tests/behat/defaultstatus.feature @@ -21,12 +21,11 @@ Feature: Admin can set default status set for use in new attendance @javascript Scenario: Modified default status set added to new attendance - When I log in as "teacher1" + Given 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 fill the form with: | Name | Attendance1 | - And I click on "Save and display" - And I should see "Attendance1" + And I follow "Attendance1" And I follow "Status set" - Then I should see "customstatusdescription" \ No newline at end of file + Then the field with xpath "//*[@id='preferencesform']/table/tbody/tr[2]/td[3]/input" matches value "customstatusdescription" \ No newline at end of file