MDL-56614 behat: Fixed steps to use new definition

This commit is contained in:
Rajesh Taneja 2016-12-07 07:10:35 +08:00
parent be1b12490e
commit 9bad658aaf
No known key found for this signature in database
GPG key ID: B363F7FB787F80E4
8 changed files with 20 additions and 20 deletions

View file

@ -21,7 +21,7 @@ Feature: Rename roles within a course
| student1 | C1 | student | | student1 | C1 | student |
And I log in as "teacher1" And I log in as "teacher1"
And I follow "Course 1" And I follow "Course 1"
When I go to "Edit settings" in current page administration When I navigate to "Edit settings" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| Your word for 'Non-editing teacher' | Tutor | | Your word for 'Non-editing teacher' | Tutor |
| Your word for 'Student' | Learner | | Your word for 'Student' | Learner |
@ -34,7 +34,7 @@ Feature: Rename roles within a course
And the "roleid" select box should contain "Learner" And the "roleid" select box should contain "Learner"
And the "roleid" select box should not contain "Student" And the "roleid" select box should not contain "Student"
And I follow "Course 1" And I follow "Course 1"
And I go to "Edit settings" in current page administration And I navigate to "Edit settings" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| Your word for 'Non-editing teacher' | | | Your word for 'Non-editing teacher' | |
| Your word for 'Student' | | | Your word for 'Student' | |

View file

@ -33,7 +33,7 @@ Feature: We can bulk insert grades for students in a course
Given I log in as "teacher1" Given I log in as "teacher1"
And I follow "Course 1" And I follow "Course 1"
And I follow "Test assignment one" And I follow "Test assignment one"
And I go to "View all submissions" in current page administration And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row" And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values: And I set the following fields to these values:
| Grade out of 100 | 50 | | Grade out of 100 | 50 |
@ -74,7 +74,7 @@ Feature: We can bulk insert grades for students in a course
Given I log in as "teacher1" Given I log in as "teacher1"
And I follow "Course 1" And I follow "Course 1"
And I follow "Test assignment two" And I follow "Test assignment two"
And I go to "View all submissions" in current page administration And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row" And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values: And I set the following fields to these values:
| Grade out of 100 | 50 | | Grade out of 100 | 50 |

View file

@ -44,12 +44,12 @@ Feature: View gradebook when scales are used
And I log in as "teacher1" And I log in as "teacher1"
And I follow "Course 1" And I follow "Course 1"
And I follow "Test assignment one" And I follow "Test assignment one"
And I go to "Edit settings" in current page administration And I navigate to "Edit settings" in current page administration
And I expand all fieldsets And I expand all fieldsets
And I set the field "grade[modgrade_type]" to "Scale" And I set the field "grade[modgrade_type]" to "Scale"
And I set the field "grade[modgrade_scale]" to "Letterscale" And I set the field "grade[modgrade_scale]" to "Letterscale"
And I press "Save and display" And I press "Save and display"
And I go to "View all submissions" in current page administration And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row" And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade" to "A" And I set the field "Grade" to "A"
And I press "Save changes" And I press "Save changes"

View file

@ -38,12 +38,12 @@ Feature: View gradebook when single item scales are used
And I log in as "teacher1" And I log in as "teacher1"
And I follow "Course 1" And I follow "Course 1"
And I follow "Test assignment one" And I follow "Test assignment one"
And I go to "Edit settings" in current page administration And I navigate to "Edit settings" in current page administration
And I expand all fieldsets And I expand all fieldsets
And I set the field "grade[modgrade_type]" to "Scale" And I set the field "grade[modgrade_type]" to "Scale"
And I set the field "grade[modgrade_scale]" to "Singleitem" And I set the field "grade[modgrade_scale]" to "Singleitem"
And I press "Save and display" And I press "Save and display"
And I go to "View all submissions" in current page administration And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row" And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade" to "A" And I set the field "Grade" to "A"
And I press "Save changes" And I press "Save changes"

View file

@ -25,7 +25,7 @@ Feature: Organize students into groups
| student3 | C1 | student | | student3 | C1 | student |
And I log in as "teacher1" And I log in as "teacher1"
And I follow "Course 1" And I follow "Course 1"
And I go to "Users > Groups" in current page administration And I navigate to "Users > Groups" in current page administration
And I press "Create group" And I press "Create group"
And I set the following fields to these values: And I set the following fields to these values:
| Group name | Group 1 | | Group name | Group 1 |
@ -72,7 +72,7 @@ Feature: Organize students into groups
And I log out And I log out
And I log in as "teacher1" And I log in as "teacher1"
And I follow "Course 1" And I follow "Course 1"
And I go to "Users > Groups" in current page administration And I navigate to "Users > Groups" in current page administration
When I press "Create group" When I press "Create group"
Then the "idnumber" "field" should be readonly Then the "idnumber" "field" should be readonly
And I set the following fields to these values: And I set the following fields to these values:
@ -95,7 +95,7 @@ Feature: Organize students into groups
And I log in as "admin" And I log in as "admin"
And I am on site homepage And I am on site homepage
And I follow "Course 1" And I follow "Course 1"
And I go to "Users > Groups" in current page administration And I navigate to "Users > Groups" in current page administration
When I press "Create group" When I press "Create group"
And I set the following fields to these values: And I set the following fields to these values:
| Group name | Group A | | Group name | Group A |
@ -118,7 +118,7 @@ Feature: Organize students into groups
And the "groups" select box should contain "Group B (0)" And the "groups" select box should contain "Group B (0)"
And I am on site homepage And I am on site homepage
And I follow "Course 2" And I follow "Course 2"
And I go to "Users > Groups" in current page administration And I navigate to "Users > Groups" in current page administration
And I press "Create group" And I press "Create group"
And I set the following fields to these values: And I set the following fields to these values:
| Group name | Group A | | Group name | Group A |

View file

@ -44,7 +44,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I log in as "teacher1" And I log in as "teacher1"
And I follow "Course 1" And I follow "Course 1"
And I follow "Test assignment name" And I follow "Test assignment name"
And I go to "View all submissions" in current page administration And I navigate to "View all submissions" in current page administration
And I should see "Not marked" in the "I'm the student's first submission" "table_row" And I should see "Not marked" in the "I'm the student's first submission" "table_row"
And I click on "Grade" "link" in the "I'm the student's first submission" "table_row" And I click on "Grade" "link" in the "I'm the student's first submission" "table_row"
And I set the field "Grade out of 100" to "50" And I set the field "Grade out of 100" to "50"
@ -54,7 +54,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I press "Ok" And I press "Ok"
And I click on "Edit settings" "link" And I click on "Edit settings" "link"
And I follow "Test assignment name" And I follow "Test assignment name"
And I go to "View all submissions" in current page administration And I navigate to "View all submissions" in current page administration
And I should see "In review" in the "I'm the student's first submission" "table_row" And I should see "In review" in the "I'm the student's first submission" "table_row"
@javascript @javascript
@ -65,7 +65,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I press "Ok" And I press "Ok"
And I click on "Edit settings" "link" And I click on "Edit settings" "link"
And I follow "Test assignment name" And I follow "Test assignment name"
And I go to "View all submissions" in current page administration And I navigate to "View all submissions" in current page administration
And I should see "Ready for release" in the "I'm the student's first submission" "table_row" And I should see "Ready for release" in the "I'm the student's first submission" "table_row"
And I click on "Grade" "link" in the "I'm the student's first submission" "table_row" And I click on "Grade" "link" in the "I'm the student's first submission" "table_row"
And I set the field "Marking workflow state" to "Released" And I set the field "Marking workflow state" to "Released"
@ -73,7 +73,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I press "Ok" And I press "Ok"
And I click on "Edit settings" "link" And I click on "Edit settings" "link"
And I follow "Test assignment name" And I follow "Test assignment name"
And I go to "View all submissions" in current page administration And I navigate to "View all submissions" in current page administration
And I should see "Released" in the "I'm the student's first submission" "table_row" And I should see "Released" in the "I'm the student's first submission" "table_row"
And I set the field "Grading action" to "Reveal student identities" And I set the field "Grading action" to "Reveal student identities"
And I press "Continue" And I press "Continue"
@ -92,7 +92,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I press "Ok" And I press "Ok"
And I click on "Edit settings" "link" And I click on "Edit settings" "link"
And I follow "Test assignment name" And I follow "Test assignment name"
And I go to "View all submissions" in current page administration And I navigate to "View all submissions" in current page administration
And I should see "Ready for release" in the "I'm the student's first submission" "table_row" And I should see "Ready for release" in the "I'm the student's first submission" "table_row"
And I set the field "Grading action" to "Reveal student identities" And I set the field "Grading action" to "Reveal student identities"
And I press "Continue" And I press "Continue"
@ -102,7 +102,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I press "Ok" And I press "Ok"
And I click on "Edit settings" "link" And I click on "Edit settings" "link"
And I follow "Test assignment name" And I follow "Test assignment name"
And I go to "View all submissions" in current page administration And I navigate to "View all submissions" in current page administration
And I should see "Released" in the "Student 1" "table_row" And I should see "Released" in the "Student 1" "table_row"
And I log out And I log out
And I log in as "student1" And I log in as "student1"

View file

@ -68,7 +68,7 @@ Feature: In a report, admin can filter log data
And I follow "Course 1" And I follow "Course 1"
And I follow "Home" And I follow "Home"
And I follow "Course 1" And I follow "Course 1"
And I go to "Users > Enrolled users" in current page administration And I navigate to "Users > Enrolled users" in current page administration
And I follow "Student 1" And I follow "Student 1"
And I click on "Log in as" "link" And I click on "Log in as" "link"
And I press "Continue" And I press "Continue"

View file

@ -108,7 +108,7 @@ Feature: Access to full profiles of users
And I log in as "admin" And I log in as "admin"
And I am on site homepage And I am on site homepage
And I follow "Course 1" And I follow "Course 1"
And I go to "Users > Groups" in current page administration And I navigate to "Users > Groups" in current page administration
And I press "Create group" And I press "Create group"
And I set the following fields to these values: And I set the following fields to these values:
| Group name | Group 1 | | Group name | Group 1 |