Fixing behat failures on App3.7

main
Amaia Anabitarte 2019-05-27 18:37:19 +02:00 committed by Sara Arjona
parent e289e3cf89
commit 8ad1df7a2f
1 changed files with 18 additions and 0 deletions

View File

@ -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"