You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fcba859
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: stream-chat-android-compose-sample/src/androidTestE2eDebug/kotlin/io/getstream/chat/android/compose/tests/PushNotificationTests.kt
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,9 @@ class PushNotificationTests : StreamTestCase() {
44
44
step("AND user goes to background") {
45
45
device.goToBackground()
46
46
}
47
+
step("AND user's WebSocket connection is closed") {
48
+
backendRobot.waitForWebSocketDisconnection()
49
+
}
47
50
step("WHEN participant sends a message and its push notification") {
48
51
participantRobot
49
52
.sendMessage(pushMessage)
@@ -69,6 +72,9 @@ class PushNotificationTests : StreamTestCase() {
69
72
step("AND user goes to background") {
70
73
device.goToBackground()
71
74
}
75
+
step("AND user's WebSocket connection is closed") {
76
+
backendRobot.waitForWebSocketDisconnection()
77
+
}
72
78
step("WHEN participant sends a message and its push notification") {
73
79
participantRobot
74
80
.sendMessage(pushMessage)
@@ -118,6 +124,9 @@ class PushNotificationTests : StreamTestCase() {
118
124
step("AND user goes to background") {
119
125
device.goToBackground()
120
126
}
127
+
step("AND user's WebSocket connection is closed") {
0 commit comments