MDL-56630 behat: Click on link in specificed block/region

This commit is contained in:
Rajesh Taneja 2016-11-08 14:38:48 +08:00
parent 1fd6b25579
commit dc90838aaa
No known key found for this signature in database
GPG key ID: B363F7FB787F80E4
55 changed files with 216 additions and 183 deletions

View file

@ -35,7 +35,7 @@ Feature: Teacher can modify choices of the students
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Choice name"
And I follow "View 1 responses"
And I click on "View 1 responses" "link" in the "Administration" "block"
And I click on "Student 1 Option 1" "checkbox"
And I select "Delete" from the "With selected" singleselect
And "Student 1 Option 1" "checkbox" should not exist
@ -53,7 +53,7 @@ Feature: Teacher can modify choices of the students
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Choice name"
And I follow "View 1 responses"
And I click on "View 1 responses" "link" in the "Administration" "block"
And I click on "Student 1 Option 1" "checkbox"
And I click on "Student 2 Not answered yet" "checkbox"
And I click on "Student 3 Not answered yet" "checkbox"
@ -71,7 +71,7 @@ Feature: Teacher can modify choices of the students
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Choice name"
And I follow "Edit settings"
And I click on "Edit settings" "link" in the "Administration" "block"
And I set the field "Allow more than one choice to be selected" to "Yes"
And I press "Save and return to course"
And I log out
@ -107,7 +107,7 @@ Feature: Teacher can modify choices of the students
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Choice name"
And I follow "Edit settings"
And I click on "Edit settings" "link" in the "Administration" "block"
And I set the following fields to these values:
| Publish results | Always show results to students |
| Privacy of results | Publish full results, showing names and their choices |