MOBILE-3295 MOBILE-3297 behat: Improvement on forum and survey behat

main
David Castellón 2020-02-12 09:06:31 +01:00
parent 4108ea15d8
commit 7d8074ccca
2 changed files with 3 additions and 40 deletions

View File

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

View File

@ -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:
@ -550,7 +547,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 @OK
Scenario: Student answers a survey offline and sync survey
Given the following "activities" exist: