Skip to content

Commit 7f7f42d

Browse files
committed
test: Ensure that member is added before yielding chat
1 parent 589236c commit 7f7f42d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/src/deltachat/testplugin.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,10 @@ def ac_member_added(self, chat: deltachat.Chat, contact, actor, message):
606606
qr = chat.get_join_qr()
607607
ac2.qr_join_chat(qr)
608608
setupplugin.member_added.wait(timeout=30)
609-
ac2.wait_next_incoming_message()
610-
ac2.wait_next_incoming_message()
609+
msg = ac2.wait_next_incoming_message()
610+
assert msg.text == "Messages are guaranteed to be end-to-end encrypted from now on."
611+
msg = ac2.wait_next_incoming_message()
612+
assert "Member Me " in msg.text and " added by " in msg.text
611613
return chat
612614

613615
def introduce_each_other(self, accounts, sending=True):

0 commit comments

Comments
 (0)