From 0b774fc53cb43e748544e15311e4e2ce9ea89cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 17 Nov 2021 10:47:55 +0100 Subject: [PATCH] MOBILE-3914 blocks: Adapt tests to new block drawer --- mod/course/tests/behat/app_basic_usage.feature | 3 ++- mod/courses/tests/behat/app_basic_usage.feature | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/course/tests/behat/app_basic_usage.feature b/mod/course/tests/behat/app_basic_usage.feature index 7e880db1d..7fe904f2c 100755 --- a/mod/course/tests/behat/app_basic_usage.feature +++ b/mod/course/tests/behat/app_basic_usage.feature @@ -486,7 +486,7 @@ Feature: Test basic usage of one course in 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 + Scenario: View blocks on drawer Given I enter the app And I log in as "teacher1" And I press "Course 1" near "Course overview" in the app @@ -527,6 +527,7 @@ Feature: Test basic usage of one course in app And I should find "Test lesson name" in the app And I should find "Test scorm name" in the app And I should find "Test workshop name" in the app + Then I press "Open block drawer" in the app And I should find "HTML title test" in the app And I should find "body test" in the app And I should find "Activities" in the app diff --git a/mod/courses/tests/behat/app_basic_usage.feature b/mod/courses/tests/behat/app_basic_usage.feature index c265717f8..0bb029c26 100755 --- a/mod/courses/tests/behat/app_basic_usage.feature +++ b/mod/courses/tests/behat/app_basic_usage.feature @@ -105,6 +105,7 @@ Feature: Test basic usage of courses in app # Configure assignment as teacher When I enter the app And I log in as "teacher1" + Then I press "Open block drawer" in the app Then I should find "Timeline" in the app Given I press "Course 1" near "Course overview" in the app @@ -124,6 +125,7 @@ Feature: Test basic usage of courses in app # Submit assignment as student When I enter the app And I log in as "student1" + Then I press "Open block drawer" in the app And I press "Add submission" in the app Then the header should be "assignment" in the app And I should find "Test assignment description" in the app @@ -143,6 +145,7 @@ Feature: Test basic usage of courses in app # Grade assignment as teacher When I enter the app And I log in as "teacher1" + Then I press "Open block drawer" in the app And I press "Grade" in the app Then the header should be "assignment" in the app And I should find "Test assignment description" in the app