MDL-48523 gradebook: Fix for incorrect behat steps.

This commit is contained in:
Adrian Greeve 2014-12-15 15:02:12 +08:00
parent 981f06fad5
commit fdc934a165

View file

@ -60,12 +60,8 @@ Feature: We can use Single view
And I press "Update" And I press "Update"
Then I should see "Grades were set for 2 items" Then I should see "Grades were set for 2 items"
And I press "Continue" And I press "Continue"
And the following should exist in the "generaltable" table: And the field "Exclude for Test assignment four" matches value "1"
| Test assignment four | And the field "Grade for Test assignment one" matches value "10.00"
| excluded |
And the following should exist in the "generaltable" table:
| Test assignment one |
| 10.00 |
And I set the following fields to these values: And I set the following fields to these values:
| Test grade item | 45 | | Test grade item | 45 |
And I press "Update" And I press "Update"
@ -82,10 +78,8 @@ Feature: We can use Single view
And I press "Update" And I press "Update"
Then I should see "Grades were set for 2 items" Then I should see "Grades were set for 2 items"
And I press "Continue" And I press "Continue"
And the following should exist in the "generaltable" table: And the field "Grade for james (Student) 1" matches value "12.05"
| Test assignment three | And the field "Exclude for holly (Student) 2" matches value "1"
| 12.05 |
| Excluded |
And I click on "Single view" "link" And I click on "Single view" "link"
And I click on "new grade item 1" "option" And I click on "new grade item 1" "option"
And I click on "Very good" "option" And I click on "Very good" "option"
@ -93,7 +87,8 @@ Feature: We can use Single view
Then I should see "Grades were set for 1 items" Then I should see "Grades were set for 1 items"
And I press "Continue" And I press "Continue"
And the following should exist in the "generaltable" table: And the following should exist in the "generaltable" table:
| Grade for james (Student) 1 | "Very good" | | First name (Alternate name) Surname | Grade |
| james (Student) 1 | Very good |
Scenario: Single view links work on grade report. Scenario: Single view links work on grade report.
Given I follow "Single view for Test assignment one" Given I follow "Single view for Test assignment one"