mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-56630 behat: Click on link in specificed block/region
This commit is contained in:
parent
1fd6b25579
commit
dc90838aaa
55 changed files with 216 additions and 183 deletions
|
@ -111,7 +111,7 @@ Feature: Using the activity grade form element
|
|||
# Try saving the form and visiting it back to verify that everything is working ok.
|
||||
And I press "Save and display"
|
||||
And I should not see "When selecting a ratings aggregate type you must also select"
|
||||
And I click on "Edit settings" "link"
|
||||
And I click on "Edit settings" "link" in the "Administration" "block"
|
||||
And I expand all fieldsets
|
||||
And the field "Aggregate type" matches value "Average of ratings"
|
||||
And the field "scale[modgrade_type]" matches value "Scale"
|
||||
|
@ -142,17 +142,17 @@ Feature: Using the activity grade form element
|
|||
| grade[modgrade_scale] | ABCDEF |
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the field "Grade" to "C"
|
||||
And I press "Save changes"
|
||||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I click on "Edit settings" "link" in the "Administration" "block"
|
||||
When I expand all fieldsets
|
||||
Then I should see "Some grades have already been awarded, so the grade type and scale cannot be changed"
|
||||
# Try saving the form and visiting it back to verify everything is working ok.
|
||||
And I press "Save and display"
|
||||
And I click on "Edit settings" "link"
|
||||
And I click on "Edit settings" "link" in the "Administration" "block"
|
||||
And I expand all fieldsets
|
||||
And the field "grade[modgrade_type]" matches value "Scale"
|
||||
And the field "grade[modgrade_scale]" matches value "ABCDEF"
|
||||
|
@ -202,11 +202,11 @@ Feature: Using the activity grade form element
|
|||
| Description | Test assignment description |
|
||||
And I follow "Course 1"
|
||||
And I follow "Test assignment name"
|
||||
And I follow "View all submissions"
|
||||
And I click on "View all submissions" "link" in the "Administration" "block"
|
||||
And I click on "Grade" "link" in the "Student 1" "table_row"
|
||||
And I set the field "Grade out of 100" to "50"
|
||||
And I press "Save changes"
|
||||
And I press "Ok"
|
||||
And I click on "Edit settings" "link"
|
||||
And I click on "Edit settings" "link" in the "Administration" "block"
|
||||
When I expand all fieldsets
|
||||
Then I should see "Some grades have already been awarded, so the grade type cannot be changed. If you wish to change the maximum grade, you must first choose whether or not to rescale existing grades."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue