clean up and bug fixes
This commit is contained in:
+2
-1
@@ -93,7 +93,8 @@ async def main():
|
||||
|
||||
# Alice opens a chat with Bob and sends a message
|
||||
await alice.call("Chat", "ajaxGet", ["bob@localhost"])
|
||||
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"
|
||||
msgid = str(uuid.uuid4())
|
||||
r = alice.ajax("Chat", "ajaxHttpDaemonSendMessage", [msgid, "bob@localhost", "Hello *Bob* 👋 https://movim.eu", False], daemon=True)
|
||||
assert r.status_code == 200, r.status_code
|
||||
|
||||
Reference in New Issue
Block a user