From 04b8f383c391e7e0dd055dc9eb4fd74089451306 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 13 Apr 2017 13:02:48 +1200 Subject: [PATCH] fix broken behat test due to user identity stuff. this is more fragile than it should be - should add classes to radio buttons to improve selection. --- tests/behat/extra_features.feature | 10 +++++----- tests/behat/report.feature | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/behat/extra_features.feature b/tests/behat/extra_features.feature index 8956ed7..f5b87c6 100644 --- a/tests/behat/extra_features.feature +++ b/tests/behat/extra_features.feature @@ -79,13 +79,13 @@ Feature: Test the various new features in the attendance module And I click on "Take attendance" # Present - And I click on "td.cell.c2 input" "css_element" in the "Student 1" "table_row" + And I click on "td.cell.c3 input" "css_element" in the "Student 1" "table_row" # Late - And I click on "td.cell.c3 input" "css_element" in the "Student 2" "table_row" + And I click on "td.cell.c4 input" "css_element" in the "Student 2" "table_row" # Excused - And I click on "td.cell.c4 input" "css_element" in the "Temporary user 1" "table_row" + And I click on "td.cell.c5 input" "css_element" in the "Temporary user 1" "table_row" # Absent - And I click on "td.cell.c5 input" "css_element" in the "Temporary user 2" "table_row" + And I click on "td.cell.c6 input" "css_element" in the "Temporary user 2" "table_row" And I press "Save attendance" And I follow "Report" And "P" "text" should exist in the "Student 1" "table_row" @@ -203,7 +203,7 @@ Feature: Test the various new features in the attendance module And I click on "submitbutton" "button" And I click on "Take attendance" "link" - When I click on "setallstatuses" "field" in the ".takelist tbody td.c3" "css_element" + When I click on "setallstatuses" "field" in the ".takelist tbody td.c4" "css_element" And I press "Save attendance" And I follow "Report" Then "L" "text" should exist in the "Student 1" "table_row" diff --git a/tests/behat/report.feature b/tests/behat/report.feature index 72e7c0c..ccfa42a 100644 --- a/tests/behat/report.feature +++ b/tests/behat/report.feature @@ -51,7 +51,7 @@ Feature: Visiting reports When I follow "Attendance" Then I click on "Take attendance" "link" in the "1am - 2am" "table_row" # Late - And I click on "td.cell.c3 input" "css_element" in the "Student 1" "table_row" + And I click on "td.cell.c4 input" "css_element" in the "Student 1" "table_row" And I press "Save attendance" When I follow "Report" @@ -77,7 +77,7 @@ Feature: Visiting reports When I follow "Attendance" Then I click on "Take attendance" "link" in the "1am - 2am" "table_row" # Excused - And I click on "td.cell.c3 input" "css_element" in the "Student 1" "table_row" + And I click on "td.cell.c4 input" "css_element" in the "Student 1" "table_row" And I press "Save attendance" When I follow "Attendance" @@ -118,7 +118,7 @@ Feature: Visiting reports When I follow "Attendance" Then I click on "Take attendance" "link" in the "1am - 2am" "table_row" # Excused - And I click on "td.cell.c3 input" "css_element" in the "Student 1" "table_row" + And I click on "td.cell.c4 input" "css_element" in the "Student 1" "table_row" And I press "Save attendance" When I follow "Add session" @@ -133,7 +133,7 @@ Feature: Visiting reports When I click on "Take attendance" "link" in the "3am - 4am" "table_row" # Present - And I click on "td.cell.c2 input" "css_element" in the "Student 1" "table_row" + And I click on "td.cell.c3 input" "css_element" in the "Student 1" "table_row" And I press "Save attendance" When I follow "Report" @@ -158,7 +158,7 @@ Feature: Visiting reports When I click on "Take attendance" "link" in the "1am - 2am" "table_row" # Late - And I click on "td.cell.c3 input" "css_element" in the "Student 1" "table_row" + And I click on "td.cell.c4 input" "css_element" in the "Student 1" "table_row" And I press "Save attendance" When I follow "Add session" @@ -170,7 +170,7 @@ Feature: Visiting reports When I click on "Take attendance" "link" in the "3am - 4am" "table_row" # Present - And I click on "td.cell.c2 input" "css_element" in the "Student 1" "table_row" + And I click on "td.cell.c3 input" "css_element" in the "Student 1" "table_row" And I press "Save attendance" When I follow "Add session" @@ -202,7 +202,7 @@ Feature: Visiting reports When I click on "Take attendance" "link" in the "1am - 2am" "table_row" # Late - And I click on "td.cell.c3 input" "css_element" in the "Student 1" "table_row" + And I click on "td.cell.c4 input" "css_element" in the "Student 1" "table_row" And I press "Save attendance" When I follow "Add session" @@ -213,7 +213,7 @@ Feature: Visiting reports When I click on "Take attendance" "link" in the "3am - 4am" "table_row" # Present - And I click on "td.cell.c2 input" "css_element" in the "Student 1" "table_row" + And I click on "td.cell.c3 input" "css_element" in the "Student 1" "table_row" And I press "Save attendance" When I follow "Add session"