Skip to content

Commit

Permalink
MDL-69559 course: Fixed behat navigation in download course content
Browse files Browse the repository at this point in the history
  • Loading branch information
mickhawkins authored and abgreeve committed Oct 26, 2020
1 parent c7d9b12 commit c2b115f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions course/tests/behat/course_download_content.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Feature: Course content can be downloaded
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And I log in as "admin"
And I navigate to "Courses > Courses > Download course content" in site administration
And I navigate to "Courses > Download course content" in site administration
And I set the following fields to these values:
| Download course content feature available | 1 |
And I press "Save changes"
And I navigate to "Courses > Courses > Course default settings" in site administration
And I navigate to "Courses > Course default settings" in site administration
And I set the field "Enable download course content" to "Yes"
And I press "Save changes"
And I log out
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Feature: Access to downloading course content can be controlled
Given I log in as "admin"
And I am on "Hockey 101" course homepage
And "Download course content" "link" should not exist in current page administration
When I navigate to "Courses > Courses > Course default settings" in site administration
When I navigate to "Courses > Course default settings" in site administration
And I set the field "Enable download course content" to "Yes"
And I press "Save changes"
And I am on "Hockey 101" course homepage
Expand All @@ -61,7 +61,7 @@ Feature: Access to downloading course content can be controlled

Scenario: Teachers require a capability to access the download course content feature or modify its availability in a course
Given I log in as "admin"
And I navigate to "Courses > Courses > Course default settings" in site administration
And I navigate to "Courses > Course default settings" in site administration
And I set the field "Enable download course content" to "Yes"
And I press "Save changes"
And I log out
Expand Down

0 comments on commit c2b115f

Please sign in to comment.