From 0dceb1ecac6c36e6948701b9fa31fb1e2819d8cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 13 Jan 2022 15:27:30 +0100 Subject: [PATCH] MOBILE-3954: Prefecth course module moved to manage storage --- .../tests/behat/app_basic_usage.feature | 7 +++--- mod/forum/tests/behat/app_basic_usage.feature | 22 +++++++++++-------- .../tests/behat/app_basic_usage.feature | 3 ++- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/mod/choice/tests/behat/app_basic_usage.feature b/mod/choice/tests/behat/app_basic_usage.feature index abf5a0c53..abd199c27 100755 --- a/mod/choice/tests/behat/app_basic_usage.feature +++ b/mod/choice/tests/behat/app_basic_usage.feature @@ -133,9 +133,10 @@ Feature: Test basic usage of choice activity in app | choice | Test single choice name | Test single choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 0 | 0 | 1 | When I enter the course "Course 1" as "student1" in the app And I press "Display options" in the app - And I press "Show download options" in the app - And I press "Download" near "Test single choice name" in the app - Then I should find "Downloaded" near "Test single choice name" in the app + And I press "Manage course storage" in the app + And I press "Download" within "Test single choice name" "ion-item" in the app + Then I should find "Downloaded" within "Test single choice name" "ion-item" in the app + And I press the back button in the app When I switch offline mode to "true" And I press "Test multi choice name" in the app diff --git a/mod/forum/tests/behat/app_basic_usage.feature b/mod/forum/tests/behat/app_basic_usage.feature index 6789902d1..63a4821f6 100755 --- a/mod/forum/tests/behat/app_basic_usage.feature +++ b/mod/forum/tests/behat/app_basic_usage.feature @@ -183,8 +183,9 @@ Feature: Test basic usage of forum activity in app When I press the back button in the app And I press "Display options" in the app - And I press "Show download options" in the app - And I press "Download" near "Test forum name" in the app + And I press "Manage course storage" in the app + And I press "Download" within "Test forum name" "ion-item" in the app + And I press the back button in the app And I press "Test forum name" in the app And I press "Auto-test" near "Sort by last post creation date in descending order" in the app Then I should find "Reply" in the app @@ -209,8 +210,9 @@ Feature: Test basic usage of forum activity in app When I press the back button in the app And I press "Display options" in the app - And I press "Show download options" in the app - And I press "Download" near "Test forum name" in the app + And I press "Manage course storage" in the app + And I press "Download" within "Test forum name" "ion-item" in the app + And I press the back button in the app And I press "Test forum name" in the app And I press "Auto-test" near "Sort by last post creation date in descending order" in the app Then I should find "Reply" in the app @@ -287,8 +289,9 @@ Feature: Test basic usage of forum activity in app And I press "Post to forum" in the app And I press the back button in the app And I press "Display options" in the app - And I press "Show download options" in the app - And I press "Download" near "Test forum name" in the app + And I press "Manage course storage" in the app + And I press "Download" within "Test forum name" "ion-item" in the app + And I press the back button in the app And I press "Test forum name" in the app And I press "DiscussionSubject" in the app And I switch offline mode to "true" @@ -365,9 +368,10 @@ Feature: Test basic usage of forum activity in app When I press the back button in the app And I press "Display options" in the app - And I press "Show download options" in the app - And I press "Download" near "Test forum name" in the app - Then I should find "Downloaded" near "Test forum name" in the app + And I press "Manage course storage" in the app + And I press "Download" within "Test forum name" "ion-item" in the app + Then I should find "Downloaded" within "Test forum name" "ion-item" in the app + And I press the back button in the app When I press "Test forum name" in the app And I press "Add a new discussion topic" in the app diff --git a/mod/survey/tests/behat/app_basic_usage.feature b/mod/survey/tests/behat/app_basic_usage.feature index d9744cd6f..fdbc42998 100755 --- a/mod/survey/tests/behat/app_basic_usage.feature +++ b/mod/survey/tests/behat/app_basic_usage.feature @@ -375,8 +375,9 @@ Feature: Test basic usage of survey activity in app | survey | Test survey critical incidents | Test survey1 | 5 | C1 | survey1 | 0 | When I enter the course "Course 1" as "student1" in the app And I press "Display options" in the app - And I press "Show download options" in the app + And I press "Manage course storage" in the app And I press "cloud download" near "Test survey critical incidents" in the app + And I press the back button in the app And I switch offline mode to "true" And I press "Test survey name" in the app Then I should see "There was a problem connecting to the site. Please check your connection and try again."