From 8ad1df7a2fe7f75ceb6a53f3aa0f2c3a0ab54cc0 Mon Sep 17 00:00:00 2001 From: Amaia Anabitarte Date: Mon, 27 May 2019 18:37:19 +0200 Subject: [PATCH] Fixing behat failures on App3.7 --- mod/forum/tests/behat/app_basic_usage.feature | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mod/forum/tests/behat/app_basic_usage.feature b/mod/forum/tests/behat/app_basic_usage.feature index 1cd4db642..099472334 100644 --- a/mod/forum/tests/behat/app_basic_usage.feature +++ b/mod/forum/tests/behat/app_basic_usage.feature @@ -30,6 +30,7 @@ Feature: Test basic usage in app Then I should see "My happy subject" 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" @@ -46,6 +47,23 @@ Feature: Test basic usage in app Then I should see "DiscussionMessage" And I should see "ReplyMessage" + @app_from3.7 + 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 "Write your reply" to "ReplyMessage" in the app + And I press "Post to forum" in the 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"