Skip to content

Commit

Permalink
MDL-58845 mod_choice: Fix behat related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch authored and andrewnicols committed Feb 22, 2018
1 parent 8597390 commit 91e2e5e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions mod/choice/tests/behat/modify_choice.feature
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ Feature: Teacher can modify choices of the students

@javascript
Scenario: Delete students choice response as a teacher
When I log in as "student1"
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Choice name"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I set the field "Show column for unanswered" to "Yes"
And I press "Save and return to course"
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I choose "Option 1" from "Choice name" choice activity
Then I should see "Your selection: Option 1"
Expand All @@ -44,7 +52,15 @@ Feature: Teacher can modify choices of the students

@javascript
Scenario: Teacher set answers of students who did not respond or change existing answers
When I log in as "student1"
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Choice name"
And I navigate to "Edit settings" in current page administration
And I expand all fieldsets
And I set the field "Show column for unanswered" to "Yes"
And I press "Save and return to course"
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I choose "Option 1" from "Choice name" choice activity
Then I should see "Your selection: Option 1"
Expand Down

0 comments on commit 91e2e5e

Please sign in to comment.