Skip to content

Commit 96ff8ab

Browse files
committed
e2e: fix for creating second user
1 parent cf11743 commit 96ff8ab

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/appium/tests/medium/test_activity_center.py

+4
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def test_activity_center_contact_request_accept_swipe_mark_all_as_read(self):
8888

8989
self.device_2.just_fyi('Device2 sends a contact request to Device1 via Paste button and check user details')
9090
self.home_2.driver.set_clipboard_text(self.public_key_1)
91+
self.home_2.chats_tab.click()
9192
self.home_2.new_chat_button.click_until_presence_of_element(self.home_2.add_a_contact_chat_bottom_sheet_button)
9293
self.home_2.add_a_contact_chat_bottom_sheet_button.click()
9394
self.home_2.element_by_translation_id("paste").click()
@@ -99,6 +100,8 @@ def test_activity_center_contact_request_accept_swipe_mark_all_as_read(self):
99100
self.device_1.just_fyi('Device1 accepts pending contact request by swiping')
100101
self.home_1.chats_tab.click()
101102
self.home_1.notifications_unread_badge.wait_for_visibility_of_element(30)
103+
if self.home_1.toast_content_element.is_element_displayed(10):
104+
self.home_1.toast_content_element.wait_for_invisibility_of_element()
102105
self.home_1.open_activity_center_button.click()
103106

104107
self.home_1.just_fyi("Mark all as read")
@@ -118,6 +121,7 @@ def test_activity_center_contact_request_accept_swipe_mark_all_as_read(self):
118121
self.errors.append("Contact was not added to contact list after accepting contact request (as receiver)")
119122

120123
self.device_2.just_fyi('Device1 check that contact appeared in contact list mutually')
124+
self.home_2.click_system_back_button_until_element_is_shown()
121125
self.home_2.chats_tab.click()
122126
self.home_2.contacts_tab.click()
123127
if not self.home_2.contact_details_row(username=self.username_1).is_element_displayed(20):

test/appium/views/sign_in_view.py

+1
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ def create_user(self, password=common_password, keycard=False, enable_notificati
228228
self.show_profiles_button.wait_and_click(20)
229229
self.plus_profiles_button.click()
230230
self.create_new_profile_button.click()
231+
self.generate_keys_button.click_until_presence_of_element(self.profile_your_name_edit_box)
231232
else:
232233
self.i_m_new_in_status_button.click_until_presence_of_element(self.generate_keys_button)
233234
self.generate_keys_button.click_until_presence_of_element(self.profile_your_name_edit_box)

0 commit comments

Comments
 (0)