summaryrefslogtreecommitdiff
path: root/test/chatroom.test
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-03-23 13:27:46 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2024-03-23 16:49:28 +0100
commita168d79d757c28cd328b9c9cd0fb5033c57a4ee7 (patch)
tree44bc0745ea68637b222f7e981248d59a50e61ad1 /test/chatroom.test
parent68db551ede73903c5f23dca6ea0fcff41c6a0ac5 (diff)
Chatroom shared type
Diffstat (limited to 'test/chatroom.test')
-rw-r--r--test/chatroom.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/chatroom.test b/test/chatroom.test
new file mode 100644
index 0000000..b63b01b
--- /dev/null
+++ b/test/chatroom.test
@@ -0,0 +1,14 @@
+test LocalChatrooms:
+ spawn as p1
+ with p1:
+ send "create-identity Device1 Owner1"
+
+ send "chatroom-create first"
+ send "chatroom-create second"
+
+ send "chatroom-list-local"
+ expect /chatroom-list-item [a-z0-9#]+ first/
+ expect /chatroom-list-item [a-z0-9#]+ second/
+ local:
+ expect /chatroom-list-(.*)/ capture done
+ guard (done == "done")