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,24 +35,24 @@ Feature: Edit completion settings of an activity
@javascript
Scenario: Pressing the unlock button allows the user to edit completion settings
Given I follow "TestPage"
When I follow "Edit settings"
When I click on "Edit settings" "link" in the "Administration" "block"
And I expand all fieldsets
And I press "Unlock completion options"
Then I should see "Completion options unlocked"
And I set the field "Completion tracking" to "Students can manually mark the activity as completed"
And I press "Save and display"
And I follow "Edit settings"
And I click on "Edit settings" "link" in the "Administration" "block"
And I expand all fieldsets
Then the field "Completion tracking" matches value "Students can manually mark the activity as completed"
@javascript
Scenario: Even when completion is locked, the user can still set the date
Given I follow "TestPage"
And I follow "Edit settings"
When I click on "Edit settings" "link" in the "Administration" "block"
And I expand all fieldsets
When I click on "id_completionexpected_enabled" "checkbox"
And I set the field "id_completionexpected_year" to "2013"
And I press "Save and display"
And I follow "Edit settings"
And I click on "Edit settings" "link" in the "Administration" "block"
And I expand all fieldsets
Then the field "id_completionexpected_year" matches value "2013"