From 423281a960100f7249278d6bd8c3803a1f404e82 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 22 Sep 2021 14:14:15 +0200 Subject: [PATCH] MOBILE-3833 behat: Fix UI changes in LMS --- mod/choice/tests/behat/app_basic_usage.feature | 3 ++- mod/course/tests/behat/app_basic_usage.feature | 7 ++++--- mod/courses/tests/behat/app_basic_usage.feature | 3 ++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/mod/choice/tests/behat/app_basic_usage.feature b/mod/choice/tests/behat/app_basic_usage.feature index 6f0caea8e..98819e5d2 100755 --- a/mod/choice/tests/behat/app_basic_usage.feature +++ b/mod/choice/tests/behat/app_basic_usage.feature @@ -174,6 +174,7 @@ Feature: Test basic usage of choice activity in app And I should find "Option 3: 0" in the app But I should not find "This Choice has offline data to be synchronised." in the app + # TODO remove LMS UI steps in app tests Scenario: Download students choice in text format # Submit answer as student Given the following "activities" exist: @@ -199,6 +200,6 @@ Feature: Test basic usage of choice activity in app And I switch to the browser tab opened by the app And I log in as "teacher1" And I press "Actions menu" - And I follow "View 1 responses" + And I follow "Responses" And I press "Download in text format" # TODO Then I should find "..." in the downloads folder diff --git a/mod/course/tests/behat/app_basic_usage.feature b/mod/course/tests/behat/app_basic_usage.feature index 249543aa4..de031bb6b 100755 --- a/mod/course/tests/behat/app_basic_usage.feature +++ b/mod/course/tests/behat/app_basic_usage.feature @@ -485,6 +485,7 @@ Feature: Test basic usage of one course in app And I should find "Test scorm name" in the app And I should find "Test workshop name" in the app + # TODO remove LMS UI steps in app tests Scenario: View blocks below/beside contents also when All sections selected Given I enter the app And I log in as "teacher1" @@ -497,14 +498,14 @@ Feature: Test basic usage of one course in app And I press "Turn editing on" And I click on "Side panel" "button" And I follow "Add a block" - And I follow "HTML" + And I follow "Text" And I click on "#theme_boost-drawers-blocks [aria-label=\"Close drawer\"]" "css_element" And I click on "Side panel" "button" And I follow "Add a block" And I follow "Activities" And I click on "Actions menu" "icon" in the "#action-menu-toggle-0" "css_element" - And I follow "Configure (new HTML block) block" - And I set the field "HTML block title" to "HTML title test" + And I follow "Configure (new text block) block" + And I set the field "Text block title" to "HTML title test" And I set the field "Content" to "body test" And I press "Save changes" And I close the browser tab opened by the app diff --git a/mod/courses/tests/behat/app_basic_usage.feature b/mod/courses/tests/behat/app_basic_usage.feature index 1f931143e..d0a6e3dc7 100755 --- a/mod/courses/tests/behat/app_basic_usage.feature +++ b/mod/courses/tests/behat/app_basic_usage.feature @@ -100,6 +100,7 @@ Feature: Test basic usage of courses in app And I should find "Course 3" in the app And I should find "Course 4" in the app + # TODO remove LMS UI steps in app tests Scenario: Links to actions in Timeline work for teachers/students # Configure assignment as teacher When I enter the app @@ -113,7 +114,7 @@ Feature: Test basic usage of courses in app And I switch to the browser tab opened by the app And I log in as "teacher1" And I press "Actions menu" - And I follow "Edit settings" + And I follow "Settings" And I press "Expand all" And I click on "duedate[enabled]" "checkbox" And I click on "gradingduedate[enabled]" "checkbox"