clean up and bug fixes
This commit is contained in:
Binary file not shown.
@@ -13,7 +13,7 @@ async def main():
|
||||
await alice.wait_for_selector("#chat_textarea", timeout=15000)
|
||||
await alice.wait_for_timeout(3000)
|
||||
await alice.screenshot(path=f"{OUT}/call_0_header.png")
|
||||
btn = alice.locator("#chat_header span.control.icon[title]").first
|
||||
btn = alice.locator("#chat_header span.control.icon", has=alice.locator("i", has_text="phone")).first
|
||||
print("call buttons:", await alice.locator("#chat_header span.control.icon[title]").count())
|
||||
await btn.click()
|
||||
await alice.wait_for_selector("#lobby_start:not(.disabled)", timeout=15000)
|
||||
|
||||
+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
|
||||
|
||||
@@ -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