clean up and bug fixes
This commit is contained in:
@@ -42,7 +42,8 @@ async def main():
|
||||
|
||||
# Alice sends a message, Bob opens the room
|
||||
await alice.call("Chat", "ajaxGetRoom", [room])
|
||||
await alice.recv_until(lambda m: m.get("func") == "Chat.setSpecificElements")
|
||||
m = await alice.recv_until(lambda m: m.get("func") == "Chat.setSpecificElements" or (m.get("func") == "MovimTpl.fill" and m["p"][0] == "#chat_widget"))
|
||||
assert m["func"] == "Chat.setSpecificElements", "the bubbles have to come before the discussion"
|
||||
r = alice.ajax("Chat", "ajaxHttpDaemonSendMessage", [str(uuid.uuid4()), room, "Hello bob in the room", True], daemon=True)
|
||||
m = await alice.recv_until(lambda m: m.get("func") == "Chat.appendMessagesWrapper" and "Hello bob in the room" in json.dumps(m))
|
||||
msg = list(list(m["p"][0].values())[0].values())[0]
|
||||
|
||||
Reference in New Issue
Block a user