@@ -157,8 +157,8 @@ testImplicitConnectionNoCollaborator = do
157
157
-- Alice and Bob aren't connected at all.
158
158
postOne2OneConversation bob alice team0 " chit-chat" >>= assertLabel 403 " no-team-member"
159
159
160
- testRemoveMemberInTeamsO2O :: (HasCallStack ) => App ()
161
- testRemoveMemberInTeamsO2O = do
160
+ testRemoveCollaboratorInTeamsO2O :: (HasCallStack ) => App ()
161
+ testRemoveCollaboratorInTeamsO2O = do
162
162
(owner0, team0, [alice]) <- createTeam OwnDomain 2
163
163
(owner1, team1, [bob]) <- createTeam OwnDomain 2
164
164
@@ -181,8 +181,8 @@ testRemoveMemberInTeamsO2O = do
181
181
Internal. getConversation convId >>= assertLabel 404 " no-conversation"
182
182
getMLSOne2OneConversation charlie bob >>= assertSuccess
183
183
184
- testRemoveMemberInO2OConnected :: (HasCallStack ) => App ()
185
- testRemoveMemberInO2OConnected = do
184
+ testRemoveCollaboratorInO2OConnected :: (HasCallStack ) => App ()
185
+ testRemoveCollaboratorInO2OConnected = do
186
186
(owner0, team0, [alice]) <- createTeam OwnDomain 2
187
187
188
188
-- At the time of writing, it wasn't clear if this should be a bot instead.
@@ -197,8 +197,8 @@ testRemoveMemberInO2OConnected = do
197
197
198
198
getMLSOne2OneConversation bob alice >>= assertSuccess
199
199
200
- testRemoveMemberInO2O :: (HasCallStack ) => App ()
201
- testRemoveMemberInO2O = do
200
+ testRemoveCollaboratorInO2O :: (HasCallStack ) => App ()
201
+ testRemoveCollaboratorInO2O = do
202
202
(owner0, team0, [alice]) <- createTeam OwnDomain 2
203
203
204
204
-- At the time of writing, it wasn't clear if this should be a bot instead.
@@ -223,8 +223,8 @@ testRemoveMemberInO2O = do
223
223
getMLSOne2OneConversation bob alice >>= assertSuccess
224
224
Internal. getConversation personalConvId >>= assertSuccess
225
225
226
- testRemoveMemberInTeamConversation :: (HasCallStack ) => App ()
227
- testRemoveMemberInTeamConversation = do
226
+ testRemoveCollaboratorInTeamConversation :: (HasCallStack ) => App ()
227
+ testRemoveCollaboratorInTeamConversation = do
228
228
(owner, team, [alice, bob]) <- createTeam OwnDomain 3
229
229
230
230
conv <-
@@ -233,7 +233,7 @@ testRemoveMemberInTeamConversation = do
233
233
defProteus {team = Just team, qualifiedUsers = [alice, bob]}
234
234
>>= getJSON 201
235
235
236
- withWebSockets [owner, alice] $ \ [wsOwner, wsAlice] -> do
236
+ withWebSockets [owner, alice, bob ] $ \ [wsOwner, wsAlice, wsBob ] -> do
237
237
removeTeamCollaborator owner team bob >>= assertSuccess
238
238
239
239
bobUnqualifiedId <- bob %. " qualified_id.id"
@@ -244,6 +244,7 @@ testRemoveMemberInTeamConversation = do
244
244
evt %. " transient" `shouldMatch` True
245
245
246
246
awaitMatch isTeamMemberLeaveNotif wsOwner >>= checkEvent
247
+ awaitMatch isTeamMemberLeaveNotif wsBob >>= checkEvent
247
248
assertNoEvent 0 wsAlice
248
249
249
250
getConversation alice conv `bindResponse` \ resp -> do
0 commit comments