@@ -37,7 +37,8 @@ def test_group_chat(multiple_instances, user_data_one, user_data_two, user_data_
3737 main_window = MainWindow ()
3838 messages_screen = MessagesScreen ()
3939
40- with multiple_instances (user_data = user_data_one ) as aut_one , multiple_instances (user_data = user_data_two ) as aut_two , multiple_instances (
40+ with multiple_instances (user_data = user_data_one ) as aut_one , multiple_instances (
41+ user_data = user_data_two ) as aut_two , multiple_instances (
4142 user_data = user_data_three ) as aut_three :
4243 with step (f'Launch multiple instances with authorized users { user_one .name } , { user_two .name } , { user_three } ' ):
4344 for aut , account in zip ([aut_one , aut_two , aut_three ], [user_one , user_two , user_three ]):
@@ -100,7 +101,7 @@ def test_group_chat(multiple_instances, user_data_one, user_data_two, user_data_
100101 with step (f'Check group members and message for { user_two .name } ' ):
101102 aut_two .attach ()
102103 main_window .prepare ()
103- assert group_chat_new_name in messages_screen .left_panel .get_chats_list () , \
104+ assert group_chat_new_name in messages_screen .left_panel .get_chats_names , \
104105 f'{ group_chat_new_name } is not present in chats list for { aut_two } '
105106 messages_screen .left_panel .click_chat_by_name (group_chat_new_name )
106107
@@ -123,15 +124,15 @@ def test_group_chat(multiple_instances, user_data_one, user_data_two, user_data_
123124 messages_screen .left_panel .open_leave_group_popup (group_chat_new_name ).confirm_leaving ()
124125
125126 with step ('Check that group name is not displayed on left panel' ):
126- assert group_chat_new_name not in messages_screen .left_panel .get_chats_list ()
127+ assert group_chat_new_name not in messages_screen .left_panel .get_chats_names
127128 main_window .hide ()
128129
129130 with step (f'Check group members and message for { user_three .name } ' ):
130131 aut_three .attach ()
131132 main_window .prepare ()
132133
133134 with step (f'Check that { user_three .name } is not a member of a group' ):
134- assert group_chat_new_name in messages_screen .left_panel .get_chats_list () , \
135+ assert group_chat_new_name in messages_screen .left_panel .get_chats_names , \
135136 f'{ group_chat_new_name } is not present in chats list for { aut_three } '
136137 messages_screen .left_panel .click_chat_by_name (group_chat_new_name )
137138 gray_message_text = messages_screen .group_chat .gray_text_from_message_area
@@ -140,22 +141,22 @@ def test_group_chat(multiple_instances, user_data_one, user_data_two, user_data_
140141
141142 with step ('Verify members in a group members list' ):
142143 assert user_one .name in messages_screen .right_panel .members
143- assert user_two .name in messages_screen .right_panel .members is False
144+ assert user_two .name in messages_screen .right_panel .members
144145 assert user_three .name in messages_screen .right_panel .members is False
145- assert len (messages_screen .right_panel .members ) == 2 # it has to be 2 since user3 is kicked and not
146+ assert len (messages_screen .right_panel .members ) == 2 # it has to be 2 since user3 is kicked and not
146147 # receiving any updates from that moment
147148
148149 with step ('Leave group' ):
149150 messages_screen .group_chat .leave_group ().confirm_leaving ()
150151
151152 with step ('Check that group name is not displayed on left panel' ):
152- assert group_chat_new_name not in messages_screen .left_panel .get_chats_list ()
153+ assert group_chat_new_name not in messages_screen .left_panel .get_chats_names
153154 main_window .hide ()
154155
155156 with step (f'Get back to { aut_one } and check members list' ):
156157 aut_one .attach ()
157158 main_window .prepare ()
158- assert group_chat_new_name in messages_screen .left_panel .get_chats_list () , \
159+ assert group_chat_new_name in messages_screen .left_panel .get_chats_names , \
159160 f'{ group_chat_new_name } is not present in chats list for { aut_one } '
160161 messages_screen .left_panel .click_chat_by_name (group_chat_new_name )
161162 assert user_one .name in messages_screen .right_panel .members
@@ -165,4 +166,4 @@ def test_group_chat(multiple_instances, user_data_one, user_data_two, user_data_
165166 messages_screen .group_chat .leave_group ().confirm_leaving ()
166167
167168 with step ('Check that group name is not displayed on left panel' ):
168- assert group_chat_new_name in messages_screen .left_panel .get_chats_list () is False
169+ assert group_chat_new_name in messages_screen .left_panel .get_chats_names is False
0 commit comments