mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-70197 navigation: Update classic goutte tests
This commit is contained in:
parent
cee0949109
commit
f65b92577a
9 changed files with 38 additions and 26 deletions
|
@ -27,13 +27,11 @@ Feature: Access to downloading course content can be controlled
|
|||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Enable download course content" to "Yes"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Course administration" in current page administration
|
||||
And "Download course content" "link" should exist
|
||||
Then "Download course content" "link" should exist in current page administration
|
||||
When the following config values are set as admin:
|
||||
| downloadcoursecontentallowed | 0 |
|
||||
And I am on "Hockey 101" course homepage
|
||||
And I navigate to "Course administration" in current page administration
|
||||
And "Download course content" "link" should not exist
|
||||
Then "Download course content" "link" should not exist in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I should not see "Enable download course content"
|
||||
|
||||
|
@ -45,8 +43,7 @@ Feature: Access to downloading course content can be controlled
|
|||
And I set the field "Enable download course content" to "Yes"
|
||||
And I press "Save changes"
|
||||
And I am on "Hockey 101" course homepage
|
||||
And I navigate to "Course administration" in current page administration
|
||||
Then "Download course content" "link" should exist
|
||||
Then "Download course content" "link" should exist in current page administration
|
||||
|
||||
Scenario: A teacher can enable and disable the download course content feature when it is available
|
||||
Given I log in as "teacher1"
|
||||
|
@ -56,13 +53,11 @@ Feature: Access to downloading course content can be controlled
|
|||
And I should see "Enable download course content"
|
||||
And I set the field "Enable download course content" to "Yes"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Course administration" in current page administration
|
||||
Then "Download course content" "link" should exist
|
||||
Then "Download course content" "link" should exist in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the field "Enable download course content" to "No"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Course administration" in current page administration
|
||||
And "Download course content" "link" should not exist
|
||||
Then "Download course content" "link" should not exist in current page administration
|
||||
|
||||
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"
|
||||
|
@ -73,8 +68,7 @@ Feature: Access to downloading course content can be controlled
|
|||
# Check teacher can see download option and enable dropdown.
|
||||
And I log in as "teacher1"
|
||||
And I am on "Hockey 101" course homepage
|
||||
And I navigate to "Course administration" in current page administration
|
||||
And "Download course content" "link" should exist
|
||||
Then "Download course content" "link" should exist in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And "Enable download course content" "select" should exist
|
||||
And I log out
|
||||
|
@ -88,8 +82,7 @@ Feature: Access to downloading course content can be controlled
|
|||
# Check teacher can no longer see download option, and that enable value is visible, but dropdown no longer available.
|
||||
When I log in as "teacher1"
|
||||
And I am on "Hockey 101" course homepage
|
||||
And I navigate to "Course administration" in current page administration
|
||||
Then "Download course content" "link" should not exist
|
||||
Then "Download course content" "link" should not exist in current page administration
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I should see "Enable download course content"
|
||||
And I should see "Site default (Yes)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue