Skip to content

Commit 7c2aa86

Browse files
Amaia Anabitartesarjona
authored andcommitted
Fixing behat failures on App3.7
1 parent 7860c84 commit 7c2aa86

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

course/tests/behat/app_courselist.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Feature: Test course list shown on app start tab
101101
And I should see "C4"
102102
And I should see "C5"
103103
And I should see "C6"
104-
And I press "more" near "Course overview" in the app
104+
And I press "Information" near "Course overview" in the app
105105
And I press "Filter my courses" in the app
106106
And I set the field "Filter my courses" to "fr" in the app
107107
Then I should not see "C1"
@@ -110,7 +110,7 @@ Feature: Test course list shown on app start tab
110110
And I should see "C4"
111111
And I should not see "C5"
112112
And I should not see "C6"
113-
And I press "more" near "Course overview" in the app
113+
And I press "Information" near "Course overview" in the app
114114
And I press "Filter my courses" in the app
115115
Then I should see "C1"
116116
And I should see "C2"

mod/forum/tests/behat/app_basic_usage.feature

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Feature: Test basic usage in app
3030
Then I should see "My happy subject"
3131
And I should see "An awesome message"
3232

33+
@app_upto3.6.1
3334
Scenario: Student posts a reply
3435
When I enter the app
3536
And I log in as "student1"
@@ -46,6 +47,23 @@ Feature: Test basic usage in app
4647
Then I should see "DiscussionMessage"
4748
And I should see "ReplyMessage"
4849

50+
@app_from3.7
51+
Scenario: Student posts a reply
52+
When I enter the app
53+
And I log in as "student1"
54+
And I press "Course 1" near "Course overview" in the app
55+
And I press "Test forum name" in the app
56+
And I press "Add a new discussion topic" in the app
57+
And I set the field "Subject" to "DiscussionSubject" in the app
58+
And I set the field "Message" to "DiscussionMessage" in the app
59+
And I press "Post to forum" in the app
60+
And I press "DiscussionSubject" in the app
61+
And I press "Reply" in the app
62+
And I set the field "Write your reply" to "ReplyMessage" in the app
63+
And I press "Post to forum" in the app
64+
Then I should see "DiscussionMessage"
65+
And I should see "ReplyMessage"
66+
4967
Scenario: Test that 'open in browser' works for forum
5068
When I enter the app
5169
And I change viewport size to "360x640"

0 commit comments

Comments
 (0)