Browse Source

fix case of am/pm in tests.

MOODLE_33_STABLE
Dan Marsden 8 years ago
parent
commit
4bafe58349
  1. 4
      tests/behat/extra_features.feature
  2. 24
      tests/behat/report.feature

4
tests/behat/extra_features.feature

@ -181,14 +181,14 @@ Feature: Test the various new features in the attendance module
| id_sestime_endhour | 13 | | id_sestime_endhour | 13 |
And I click on "submitbutton" "button" And I click on "submitbutton" "button"
When I click on "Take attendance" "link" in the "10am" "table_row" When I click on "Take attendance" "link" in the "10AM" "table_row"
Then "Set status for all users to «Present»" "link" should exist Then "Set status for all users to «Present»" "link" should exist
And "Set status for all users to «Late»" "link" should exist And "Set status for all users to «Late»" "link" should exist
And "Set status for all users to «Excused»" "link" should exist And "Set status for all users to «Excused»" "link" should exist
And "Set status for all users to «Absent»" "link" should exist And "Set status for all users to «Absent»" "link" should exist
When I follow "Sessions" When I follow "Sessions"
And I click on "Take attendance" "link" in the "12pm" "table_row" And I click on "Take attendance" "link" in the "12PM" "table_row"
Then "Set status for all users to «Great»" "link" should exist Then "Set status for all users to «Great»" "link" should exist
And "Set status for all users to «OK»" "link" should exist And "Set status for all users to «OK»" "link" should exist
And "Set status for all users to «Bad»" "link" should exist And "Set status for all users to «Bad»" "link" should exist

24
tests/behat/report.feature

@ -48,7 +48,7 @@ Feature: Visiting reports
And "-" "text" should exist in the "Student 1" "table_row" And "-" "text" should exist in the "Student 1" "table_row"
When I follow "Attendance" When I follow "Attendance"
Then I click on "Take attendance" "link" in the "1am - 2am" "table_row" Then I click on "Take attendance" "link" in the "1AM - 2AM" "table_row"
# Late # Late
And I click on "td.cell.c4 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" And I press "Save attendance"
@ -74,7 +74,7 @@ Feature: Visiting reports
And I press "Save and display" And I press "Save and display"
When I follow "Attendance" When I follow "Attendance"
Then I click on "Take attendance" "link" in the "1am - 2am" "table_row" Then I click on "Take attendance" "link" in the "1AM - 2AM" "table_row"
# Excused # Excused
And I click on "td.cell.c4 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" And I press "Save attendance"
@ -114,7 +114,7 @@ Feature: Visiting reports
And I press "Save and display" And I press "Save and display"
When I follow "Attendance" When I follow "Attendance"
Then I click on "Take attendance" "link" in the "1am - 2am" "table_row" Then I click on "Take attendance" "link" in the "1AM - 2AM" "table_row"
# Excused # Excused
And I click on "td.cell.c4 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" And I press "Save attendance"
@ -126,10 +126,10 @@ Feature: Visiting reports
| id_sessiontype_1 | 1 | | id_sessiontype_1 | 1 |
| id_groups | Group1 | | id_groups | Group1 |
And I click on "id_submitbutton" "button" And I click on "id_submitbutton" "button"
Then I should see "3am - 4am" Then I should see "3AM - 4AM"
And "Group: Group1" "text" should exist in the "3am - 4am" "table_row" And "Group: Group1" "text" should exist in the "3AM - 4AM" "table_row"
When I click on "Take attendance" "link" in the "3am - 4am" "table_row" When I click on "Take attendance" "link" in the "3AM - 4AM" "table_row"
# Present # Present
And I click on "td.cell.c3 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" And I press "Save attendance"
@ -154,7 +154,7 @@ Feature: Visiting reports
| id_grade_modgrade_point | 50 | | id_grade_modgrade_point | 50 |
And I press "Save and display" And I press "Save and display"
When I click on "Take attendance" "link" in the "1am - 2am" "table_row" When I click on "Take attendance" "link" in the "1AM - 2AM" "table_row"
# Late # Late
And I click on "td.cell.c4 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" And I press "Save attendance"
@ -164,9 +164,9 @@ Feature: Visiting reports
| id_sestime_starthour | 03 | | id_sestime_starthour | 03 |
| id_sestime_endhour | 04 | | id_sestime_endhour | 04 |
And I click on "id_submitbutton" "button" And I click on "id_submitbutton" "button"
Then I should see "3am - 4am" Then I should see "3AM - 4AM"
When I click on "Take attendance" "link" in the "3am - 4am" "table_row" When I click on "Take attendance" "link" in the "3AM - 4AM" "table_row"
# Present # Present
And I click on "td.cell.c3 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" And I press "Save attendance"
@ -176,7 +176,7 @@ Feature: Visiting reports
| id_sestime_starthour | 05 | | id_sestime_starthour | 05 |
| id_sestime_endhour | 06 | | id_sestime_endhour | 06 |
And I click on "id_submitbutton" "button" And I click on "id_submitbutton" "button"
Then I should see "5am - 6am" Then I should see "5AM - 6AM"
When I follow "Report" When I follow "Report"
And I click on "Summary" "link" in the "All" "table_row" And I click on "Summary" "link" in the "All" "table_row"
@ -198,7 +198,7 @@ Feature: Visiting reports
| id_grade_modgrade_point | 50 | | id_grade_modgrade_point | 50 |
And I press "Save and display" And I press "Save and display"
When I click on "Take attendance" "link" in the "1am - 2am" "table_row" When I click on "Take attendance" "link" in the "1AM - 2AM" "table_row"
# Late # Late
And I click on "td.cell.c4 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" And I press "Save attendance"
@ -209,7 +209,7 @@ Feature: Visiting reports
| id_sestime_endhour | 04 | | id_sestime_endhour | 04 |
And I click on "id_submitbutton" "button" And I click on "id_submitbutton" "button"
When I click on "Take attendance" "link" in the "3am - 4am" "table_row" When I click on "Take attendance" "link" in the "3AM - 4AM" "table_row"
# Present # Present
And I click on "td.cell.c3 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" And I press "Save attendance"

Loading…
Cancel
Save