From 7d52d5def62b90fe31fbdd4582907ecf2b148033 Mon Sep 17 00:00:00 2001 From: Michael Hawkins Date: Mon, 26 Oct 2020 16:35:20 +0800 Subject: [PATCH] MDL-69559 course: Fixed behat navigation in download course content --- course/tests/behat/course_download_content.feature | 4 ++-- .../tests/behat/course_download_content_permissions.feature | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/course/tests/behat/course_download_content.feature b/course/tests/behat/course_download_content.feature index bd745f8a86d..830c2b9fda9 100644 --- a/course/tests/behat/course_download_content.feature +++ b/course/tests/behat/course_download_content.feature @@ -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 diff --git a/course/tests/behat/course_download_content_permissions.feature b/course/tests/behat/course_download_content_permissions.feature index 19fa3317858..7ec66482833 100644 --- a/course/tests/behat/course_download_content_permissions.feature +++ b/course/tests/behat/course_download_content_permissions.feature @@ -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 @@ -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