File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
deltachat-rpc-client/tests Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -778,3 +778,22 @@ def test_rename_synchronization(acfactory):
778
778
alice_msg .sender .set_name ("Bobby" )
779
779
alice2 .wait_for_event (EventType .CONTACTS_CHANGED )
780
780
assert alice2_msg .sender .get_snapshot ().display_name == "Bobby"
781
+
782
+
783
+ def test_rename_group (acfactory ):
784
+ """Test renaming the group."""
785
+ alice , bob = acfactory .get_online_accounts (2 )
786
+
787
+ alice_group = alice .create_group ("Test group" )
788
+ alice_contact_bob = alice .create_contact (bob )
789
+ alice_group .add_contact (alice_contact_bob )
790
+ alice_group .send_text ("Hello!" )
791
+
792
+ bob_msg = bob .wait_for_incoming_msg ()
793
+ bob_chat = bob_msg .get_snapshot ().chat
794
+ assert bob_chat .get_basic_snapshot ().name == "Test group"
795
+
796
+ for name in ["Baz" , "Foo bar" , "Xyzzy" ]:
797
+ alice_group .set_name (name )
798
+ bob .wait_for_incoming_msg_event ()
799
+ assert bob_chat .get_basic_snapshot ().name == name
You can’t perform that action at this time.
0 commit comments