From f02845a616411e10adb437c06f38dcb58a90f120 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 9 Mar 2017 15:31:31 +1300 Subject: [PATCH] Use same test structure as master. --- tests/behat/defaultstatus.feature | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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