From 7d8074cccac73f9c21bf0faf6caadb71d74c5a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Castell=C3=B3n?= Date: Wed, 12 Feb 2020 09:06:31 +0100 Subject: [PATCH] MOBILE-3295 MOBILE-3297 behat: Improvement on forum and survey behat --- mod/forum/tests/behat/app_basic_usage.feature | 37 +------------------ .../tests/behat/app_basic_usage.feature | 6 +-- 2 files changed, 3 insertions(+), 40 deletions(-) diff --git a/mod/forum/tests/behat/app_basic_usage.feature b/mod/forum/tests/behat/app_basic_usage.feature index af3f0f42c..d913a45a0 100755 --- a/mod/forum/tests/behat/app_basic_usage.feature +++ b/mod/forum/tests/behat/app_basic_usage.feature @@ -38,23 +38,6 @@ Feature: Test basic usage of forum activity in app And I press "My happy subject" in the app And I should see "An awesome message" - @app_upto3.6.1 - Scenario: Student posts a reply - When I enter the app - And I log in as "student1" - And I press "Course 1" near "Course overview" in the app - And I press "Test forum name" in the app - And I press "Add a new discussion topic" in the app - And I set the field "Subject" to "DiscussionSubject" in the app - And I set the field "Message" to "DiscussionMessage" in the app - And I press "Post to forum" in the app - And I press "DiscussionSubject" in the app - And I press "Reply" in the app - And I set the field "Message" to "ReplyMessage" in the app - And I press "Post to forum" in the app - Then I should see "DiscussionMessage" - And I should see "ReplyMessage" - @app_from3.7 Scenario: Student posts a reply When I enter the app @@ -72,21 +55,6 @@ Feature: Test basic usage of forum activity in app Then I should see "DiscussionMessage" And I should see "ReplyMessage" - Scenario: Test that 'open in browser' works for forum - When I enter the app - And I change viewport size to "360x640" - And I log in as "student1" - And I press "Course 1" near "Course overview" in the app - And I press "Test forum name" in the app - And I press the page menu button in the app - And I press "Open in browser" in the app - And I switch to the browser tab opened by the app - And I log in as "student1" - Then I should see "Test forum name" - And I should see "Add a new discussion topic" - And I close the browser tab opened by the app - And I press the back button in the app - @app @3.8.0 @mobile @OK Scenario: Student stars a discussion (mobile) When I enter the app @@ -184,7 +152,7 @@ Feature: Test basic usage of forum activity in app Then I should see "Auto-test star" And I should see "Auto-test pin" - @app @mobile @3.6 @OK + @app_upto3.6.0 @OK Scenario: Teacher checks pin and star in 3.6 When I enter the app And I log in as "teacher1" @@ -195,8 +163,7 @@ Feature: Test basic usage of forum activity in app And I set the field "Message" to "Auto-test message" in the app And I press "Post to forum" in the app And I press "Auto-test" in the app - And I wait "1" seconds - And I press "Display options" in the app + And I press "Information" in the app Then I should not see "Star this discussion" And I should not see "Pin this discussion" diff --git a/mod/survey/tests/behat/app_basic_usage.feature b/mod/survey/tests/behat/app_basic_usage.feature index ad2152693..12aeb3487 100755 --- a/mod/survey/tests/behat/app_basic_usage.feature +++ b/mod/survey/tests/behat/app_basic_usage.feature @@ -242,7 +242,6 @@ Feature: Test basic usage of survey activity in app Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages." And I should see "1 people have completed this survey so far" - @app @3.8.0 @mobile @OK Scenario: Student answers a survey of Colles (preferred) and see results mobile Given the following "activities" exist: @@ -252,7 +251,6 @@ Feature: Test basic usage of survey activity in app And I log in as "student1" And I press "Course 1" near "Course overview" in the app And I press "Test survey Colles (preferred)" in the app - And I pause And I press "Choose" near "1. my learning focuses on issues that interest me." in the app And I press "Sometimes" near "Often" in the app And I press "Choose" near "2. what I learn is important for my professional practice." in the app @@ -313,7 +311,6 @@ Feature: Test basic usage of survey activity in app Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages." And I should see "1 people have completed this survey so far" - @app @3.8.0 @tablet @OK Scenario: Student answers a survey of Colles (preferred) and see results tablet Given the following "activities" exist: @@ -549,8 +546,7 @@ Feature: Test basic usage of survey activity in app And I log in as "student1" Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages." And I should see "1 people have completed this survey so far" - - + @app @3.8.0 @OK Scenario: Student answers a survey offline and sync survey Given the following "activities" exist: