From 78d5895f218583708ed5bdeeb186f05b2d531387 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 13 Apr 2017 12:38:22 +1200 Subject: [PATCH] tidy up behat steps. --- tests/behat/extra_features.feature | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/behat/extra_features.feature b/tests/behat/extra_features.feature index 505c36f..8956ed7 100644 --- a/tests/behat/extra_features.feature +++ b/tests/behat/extra_features.feature @@ -77,7 +77,7 @@ Feature: Test the various new features in the attendance module | id_addmultiply | 0 | And I click on "submitbutton" "button" - When I follow "Take attendance" + And I click on "Take attendance" # Present And I click on "td.cell.c2 input" "css_element" in the "Student 1" "table_row" # Late @@ -88,13 +88,13 @@ Feature: Test the various new features in the attendance module And I click on "td.cell.c5 input" "css_element" in the "Temporary user 2" "table_row" And I press "Save attendance" And I follow "Report" - Then "P" "text" should exist in the "Student 1" "table_row" + And "P" "text" should exist in the "Student 1" "table_row" And "L" "text" should exist in the "Student 2" "table_row" And "E" "text" should exist in the "Temporary user 1" "table_row" And "A" "text" should exist in the "Temporary user 2" "table_row" - When I follow "Temporary user 2" - Then I should see "Absent" + And I follow "Temporary user 2" + And I should see "Absent" # Merge user. When I follow "Test attendance" @@ -104,11 +104,11 @@ Feature: Test the various new features in the attendance module And I press "Merge user" And I follow "Report" - Then "P" "text" should exist in the "Student 1" "table_row" + And "P" "text" should exist in the "Student 1" "table_row" And "L" "text" should exist in the "Student 2" "table_row" And "E" "text" should exist in the "Temporary user 1" "table_row" And "A" "text" should exist in the "Student 3" "table_row" - And I should not see "Temporary user 2" + Then I should not see "Temporary user 2" Scenario: A teacher can select a subset of users for export Given the following "groups" exist: -- 2.11.0