Browse Source

update tests with latest string formats.

MOODLE_32_STABLE
Dan Marsden 8 years ago
parent
commit
2ef0fffe84
  1. 4
      tests/behat/extra_features.feature
  2. 22
      tests/behat/report.feature

4
tests/behat/extra_features.feature

@ -182,14 +182,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 "10:00" "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 "12:00" "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

22
tests/behat/report.feature

@ -50,7 +50,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 "01:00 - 02:00" "table_row" Then I click on "Take attendance" "link" in the "1am - 2am" "table_row"
# Late # Late
And I click on "td.c3 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" And I press "Save attendance"
@ -76,7 +76,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 "01:00 - 02:00" "table_row" Then I click on "Take attendance" "link" in the "1am - 2am" "table_row"
# Excused # Excused
And I click on "td.c3 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" And I press "Save attendance"
@ -117,7 +117,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 "01:00 - 02:00" "table_row" Then I click on "Take attendance" "link" in the "1am - 2am" "table_row"
# Excused # Excused
And I click on "td.c3 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" And I press "Save attendance"
@ -129,10 +129,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 "03:00 - 04:00" Then I should see "3am - 4am"
And "Group: Group1" "text" should exist in the "03:00 - 04:00" "table_row" And "Group: Group1" "text" should exist in the "3am - 4am" "table_row"
When I click on "Take attendance" "link" in the "03:00 - 04:00" "table_row" When I click on "Take attendance" "link" in the "3am - 4am" "table_row"
# Present # Present
And I click on "td.c2 input" "css_element" in the "Student 1" "table_row" And I click on "td.c2 input" "css_element" in the "Student 1" "table_row"
And I press "Save attendance" And I press "Save attendance"
@ -157,7 +157,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 "01:00 - 02:00" "table_row" When I click on "Take attendance" "link" in the "1am - 2am" "table_row"
# Late # Late
And I click on "td.c3 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" And I press "Save attendance"
@ -167,9 +167,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 "03:00 - 04:00" Then I should see "3am - 4am"
When I click on "Take attendance" "link" in the "03:00 - 04:00" "table_row" When I click on "Take attendance" "link" in the "3am - 4am" "table_row"
# Present # Present
And I click on "td.c2 input" "css_element" in the "Student 1" "table_row" And I click on "td.c2 input" "css_element" in the "Student 1" "table_row"
And I press "Save attendance" And I press "Save attendance"
@ -201,7 +201,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 "01:00 - 02:00" "table_row" When I click on "Take attendance" "link" in the "1am - 2am" "table_row"
# Late # Late
And I click on "td.c3 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" And I press "Save attendance"
@ -212,7 +212,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 "03:00 - 04:00" "table_row" When I click on "Take attendance" "link" in the "3am - 4am" "table_row"
# Present # Present
And I click on "td.c2 input" "css_element" in the "Student 1" "table_row" And I click on "td.c2 input" "css_element" in the "Student 1" "table_row"
And I press "Save attendance" And I press "Save attendance"

Loading…
Cancel
Save