@@ -18,7 +18,6 @@ def prepare_devices(self):
18
18
self .loop .run_until_complete (run_in_parallel (((self .device_1 .create_user , {'enable_notifications' : True ,
19
19
'username' : self .username_1 }),
20
20
(self .device_2 .create_user , {'username' : self .username_2 }))))
21
- self .device_2_users_number = 1
22
21
self .homes = self .home_1 , self .home_2 = self .device_1 .get_home_view (), self .device_2 .get_home_view ()
23
22
self .profile_1 , self .profile_2 = self .home_1 .get_profile_view (), self .home_2 .get_profile_view ()
24
23
self .public_key_1 = self .home_1 .get_public_key ()
@@ -91,8 +90,7 @@ def test_activity_center_contact_request_accept_swipe_mark_all_as_read(self):
91
90
self .home_2 .profile_button .click ()
92
91
self .profile_2 .logout ()
93
92
new_username = "new user"
94
- self .device_2 .create_user (username = new_username , user_number = self .device_2_users_number )
95
- self .device_2_users_number += 1
93
+ self .device_2 .create_user (username = new_username , first_user = False )
96
94
97
95
self .device_2 .just_fyi ('Device2 sends a contact request to Device1 via Paste button and check user details' )
98
96
self .home_2 .driver .set_clipboard_text (self .public_key_1 )
@@ -144,8 +142,7 @@ def test_add_contact_field_validation(self):
144
142
self .home_2 .profile_button .click ()
145
143
self .profile_2 .logout ()
146
144
new_username_2 = "test user 123"
147
- self .device_2 .create_user (username = new_username_2 , user_number = self .device_2_users_number )
148
- self .device_2_users_number += 1
145
+ self .device_2 .create_user (username = new_username_2 , first_user = False )
149
146
150
147
self .device_2 .just_fyi ('Device2 sends a contact request to Device1 using his profile link' )
151
148
self .home_2 .driver .set_clipboard_text ("https://status.app/u#" + self .public_key_1 )
0 commit comments