From 3cf915376ba48a83b1686c41def143696f2726cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Castell=C3=B3n?= Date: Wed, 22 Jan 2020 10:48:15 +0100 Subject: [PATCH] MOBILE-3307 behat: Behat basic test for course --- .../tests/behat/app_basic_usage.feature | 75 ++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/mod/course/tests/behat/app_basic_usage.feature b/mod/course/tests/behat/app_basic_usage.feature index e6f0e517e..b4d453a42 100755 --- a/mod/course/tests/behat/app_basic_usage.feature +++ b/mod/course/tests/behat/app_basic_usage.feature @@ -314,4 +314,77 @@ Feature: Test basic usage of one course in app And I should not see "Test workshop name" And I press "Test glossary" in the app Then the header should be "Test glossary" in the app - And I press the back button in the app \ No newline at end of file + And I press the back button in the app + + @app @3.8.0 @OK + Scenario: Navigation between sections using the bottom arrows + When I enter the app + And I log in as "student1" + Then the header should be "Acceptance test site" in the app + And I should see "Course 1" + And I press "Course 1" near "Recently accessed courses" in the app + Then the header should be "Course 1" in the app + And I should see "Choice course 1" + And I should see "assignment" + And I should see "Test forum name" + And I should see "Test chat name" + And I should see "Web links" + And I should see "Test external name" + And I should see "Test feedback name" + And I should see "Test glossary" + And I should see "Quiz 1" + And I should see "Test survey name" + And I should see "Test wiki name" + And I should see "Test lesson name" + And I should see "Test scorm name" + And I should see "Test workshop name" + And I press "arrow dropdown" in the app + And I press "General" near "Sections" in the app + Then I should see "General" + And I should not see "Topic 1" + And I should not see "Topic 2" + And I should not see "Topic 3" + And I should not see "Topic 4" + And I should not see "Topic 5" + And I press "arrow forward" near "Test wiki name" in the app + Then I should not see "General" + And I should see "Topic 1" + And I should not see "Topic 2" + And I should not see "Topic 3" + And I should not see "Topic 4" + And I should not see "Topic 5" + And I press "arrow forward" near "Test survey name" in the app + Then I should not see "General" + And I should not see "Topic 1" + And I should see "Topic 2" + And I should not see "Topic 3" + And I should not see "Topic 4" + And I should not see "Topic 5" + And I press "arrow forward" near "Test scorm name" in the app + Then I should not see "General" + And I should not see "Topic 1" + And I should not see "Topic 2" + And I should see "Topic 3" + And I should not see "Topic 4" + And I should not see "Topic 5" + And I press "arrow forward" near "Test workshop name" in the app + Then I should not see "General" + And I should not see "Topic 1" + And I should not see "Topic 2" + And I should not see "Topic 3" + And I should see "Topic 4" + And I should not see "Topic 5" + And I press "arrow forward" near "Web links" in the app + Then I should not see "General" + And I should not see "Topic 1" + And I should not see "Topic 2" + And I should not see "Topic 3" + And I should not see "Topic 4" + And I should see "Topic 5" + And I press "arrow back" near "Test glossary" in the app + Then I should not see "General" + And I should not see "Topic 1" + And I should not see "Topic 2" + And I should not see "Topic 3" + And I should see "Topic 4" + And I should not see "Topic 5" \ No newline at end of file