Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @javascript
- Scenario: Edit section availability using course page link
- # Setting a restriction up
- Given I log in as "teacher1"
- And I am on "Course 1" course homepage with editing mode on
- And I edit the section "1"
- And I expand all fieldsets
- And I press "Add restriction..."
- And I click on "Date" "button" in the "Add restriction..." "dialogue"
- And I press "Save changes"
- # Testing edit settings link
- When I click on "Edit settings" "link" in the "section-1" "core_availability > Section availability"
- Then I should see "Restrict access"
- And I should not see "General"
- And I click on "Cancel" "button"
- # Edit settings link not displayed when editing mode is off.
- And I am on "Course 1" course homepage with editing mode off
- And I should not see "Edit settings" in the "section-1" "core_availability > Section availability"
- @javascript
- Scenario: Edit activity availability using course page link
- # Setting a restriction up
- Given I am on the "MyForum" "forum activity editing" page logged in as teacher1
- And I expand all fieldsets
- And I press "Add restriction..."
- And I click on "Date" "button" in the "Add restriction..." "dialogue"
- When I press "Save and return to course"
- # Edit settings link not displayed when editing mode is off.
- Then "Edit settings" "link" should not exist in the "MyForum" "core_availability > Activity availability"
- # Testing edit settings link
- But I am on "Course 1" course homepage with editing mode on
- And "Edit settings" "link" should exist in the "MyForum" "core_availability > Activity availability"
- And I click on "Edit settings" "link" in the "MyForum" "core_availability > Activity availability"
- And I should see "Restrict access"
- And I should not see "Content"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement