1- @mod @mod_chat @app @app_upto3.9.4 @ javascript
1+ @mod @mod_chat @app @javascript
22Feature : Test basic usage of chat in app
33 As a student
44 I need basic chat functionality to work
@@ -19,55 +19,58 @@ Feature: Test basic usage of chat in app
1919 | activity | name | intro | course | idnumber | groupmode |
2020 | chat | Test chat name | Test chat | C1 | chat | 0 |
2121
22- @app @3.8.0
2322 Scenario : Receive and send messages & See connected users, beep and talk to
2423 # Send messages as student1
2524 When I enter the app
2625 And I log in as "student1"
2726 And I press "Course 1" near "Course overview" in the app
2827 And I press "Test chat name" in the app
29- Then I should see "Click here to enter the chat now"
30- And I should see "View past chat sessions"
28+ Then I should find "Click here to enter the chat now" in the app
29+ And I should find "View past chat sessions" in the app
3130
3231 When I press "Click here to enter the chat now" in the app
33- And I set the field "New message" to "Hi!"
32+ And I set the field "New message" to "Hi!" in the app
3433 And I press "Send" in the app
35- And I set the field "New message" to "I am David"
34+ Then I should find "Hi!" in the app
35+
36+ When I set the field "New message" to "I am David" in the app
3637 And I press "Send" in the app
37- Then I should see "Hi!"
38- And I should see "I am David"
38+ Then I should find "Hi!" in the app
39+ And I should find "I am David" in the app
3940
4041 # Read messages, view connected users, send beep and reply as student2
4142 When I enter the app
4243 And I log in as "student2"
4344 And I press "Course 1" near "Course overview" in the app
4445 And I press "Test chat name" in the app
4546 And I press "Click here to enter the chat now" in the app
46- Then I should see "Hi!"
47- And I should see "I am David"
47+ Then I should find "Hi!" in the app
48+ And I should find "I am David" in the app
4849
49- When I press "people " in the app
50- Then I should see "david student"
50+ When I press "Users " in the app
51+ Then I should find "david student" in the app
5152
5253 When I press "Beep" in the app
53- Then I should see "You beeped david student"
54+ Then I should find "You beeped david student" in the app
5455
55- When I set the field "New message" to "Hi David, I am Pau."
56+ When I set the field "New message" to "Hi David, I am Pau." in the app
5657 And I press "Send" in the app
57- Then I should see "Hi David, I am Pau."
58+ Then I should find "Hi David, I am Pau." in the app
5859
59- @app @3.8.0
6060 Scenario : Past sessions shown for >=3.5
6161 # Send messages as student1
6262 Given I enter the app
6363 And I log in as "student1"
6464 And I press "Course 1" near "Course overview" in the app
6565 And I press "Test chat name" in the app
6666 And I press "Click here to enter the chat now" in the app
67- And I set the field "New message" to "Hi!"
67+ And I set the field "New message" to "Hi!" in the app
6868 And I press "Send" in the app
69- And I set the field "New message" to "I am David"
69+ Then I should find "Hi!" in the app
70+
71+ When I set the field "New message" to "I am David" in the app
7072 And I press "Send" in the app
73+ Then I should find "I am David" in the app
7174
7275 # Read messages from past sessions as student2
7376 When I enter the app
@@ -76,6 +79,6 @@ Feature: Test basic usage of chat in app
7679 And I press "Test chat name" in the app
7780 And I press "View past chat sessions" in the app
7881 And I press "Show incomplete sessions" in the app
79- And I press "david student (2)" in the app
80- Then I should see "Hi!"
81- And I should see "I am David"
82+ And I press "david student" near " (2)" in the app
83+ Then I should find "Hi!" in the app
84+ And I should find "I am David" in the app
0 commit comments