Browse Source

Fix broken tests due to identity patch.

MOODLE_32_STABLE
Dan Marsden 8 years ago
parent
commit
9bf96ab3bc
  1. 10
      tests/behat/extra_features.feature
  2. 16
      tests/behat/report.feature

10
tests/behat/extra_features.feature

@ -80,13 +80,13 @@ Feature: Test the various new features in the attendance module
When I follow "Take attendance"
# Present
And I click on "td.c2 input" "css_element" in the "Student 1" "table_row"
And I click on "td.c3 input" "css_element" in the "Student 1" "table_row"
# Late
And I click on "td.c3 input" "css_element" in the "Student 2" "table_row"
And I click on "td.c4 input" "css_element" in the "Student 2" "table_row"
# Excused
And I click on "td.c4 input" "css_element" in the "Temporary user 1" "table_row"
And I click on "td.c5 input" "css_element" in the "Temporary user 1" "table_row"
# Absent
And I click on "td.c5 input" "css_element" in the "Temporary user 2" "table_row"
And I click on "td.c6 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"
@ -204,7 +204,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"

16
tests/behat/report.feature

@ -52,7 +52,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.c3 input" "css_element" in the "Student 1" "table_row"
And I click on "td.c4 input" "css_element" in the "Student 1" "table_row"
And I press "Save attendance"
When I follow "Report"
@ -78,7 +78,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.c3 input" "css_element" in the "Student 1" "table_row"
And I click on "td.c4 input" "css_element" in the "Student 1" "table_row"
And I press "Save attendance"
When I follow "Attendance"
@ -119,7 +119,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.c3 input" "css_element" in the "Student 1" "table_row"
And I click on "td.c4 input" "css_element" in the "Student 1" "table_row"
And I press "Save attendance"
When I follow "Add session"
@ -134,7 +134,7 @@ Feature: Visiting reports
When I click on "Take attendance" "link" in the "3am - 4am" "table_row"
# Present
And I click on "td.c2 input" "css_element" in the "Student 1" "table_row"
And I click on "td.c3 input" "css_element" in the "Student 1" "table_row"
And I press "Save attendance"
When I follow "Report"
@ -159,7 +159,7 @@ Feature: Visiting reports
When I click on "Take attendance" "link" in the "1am - 2am" "table_row"
# Late
And I click on "td.c3 input" "css_element" in the "Student 1" "table_row"
And I click on "td.c4 input" "css_element" in the "Student 1" "table_row"
And I press "Save attendance"
When I follow "Add session"
@ -171,7 +171,7 @@ Feature: Visiting reports
When I click on "Take attendance" "link" in the "3am - 4am" "table_row"
# Present
And I click on "td.c2 input" "css_element" in the "Student 1" "table_row"
And I click on "td.c3 input" "css_element" in the "Student 1" "table_row"
And I press "Save attendance"
When I follow "Add session"
@ -203,7 +203,7 @@ Feature: Visiting reports
When I click on "Take attendance" "link" in the "1am - 2am" "table_row"
# Late
And I click on "td.c3 input" "css_element" in the "Student 1" "table_row"
And I click on "td.c4 input" "css_element" in the "Student 1" "table_row"
And I press "Save attendance"
When I follow "Add session"
@ -214,7 +214,7 @@ Feature: Visiting reports
When I click on "Take attendance" "link" in the "3am - 4am" "table_row"
# Present
And I click on "td.c2 input" "css_element" in the "Student 1" "table_row"
And I click on "td.c3 input" "css_element" in the "Student 1" "table_row"
And I press "Save attendance"
When I follow "Add session"

Loading…
Cancel
Save