diff --git a/test/appium/tests/medium/test_activity_center.py b/test/appium/tests/medium/test_activity_center.py index 30a9c031a3..29855764e4 100644 --- a/test/appium/tests/medium/test_activity_center.py +++ b/test/appium/tests/medium/test_activity_center.py @@ -88,6 +88,7 @@ class TestActivityCenterContactRequestMultipleDevicePR(MultipleSharedDeviceTestC self.device_2.just_fyi('Device2 sends a contact request to Device1 via Paste button and check user details') self.home_2.driver.set_clipboard_text(self.public_key_1) + self.home_2.chats_tab.click() self.home_2.new_chat_button.click_until_presence_of_element(self.home_2.add_a_contact_chat_bottom_sheet_button) self.home_2.add_a_contact_chat_bottom_sheet_button.click() self.home_2.element_by_translation_id("paste").click() @@ -99,6 +100,8 @@ class TestActivityCenterContactRequestMultipleDevicePR(MultipleSharedDeviceTestC self.device_1.just_fyi('Device1 accepts pending contact request by swiping') self.home_1.chats_tab.click() self.home_1.notifications_unread_badge.wait_for_visibility_of_element(30) + if self.home_1.toast_content_element.is_element_displayed(10): + self.home_1.toast_content_element.wait_for_invisibility_of_element() self.home_1.open_activity_center_button.click() self.home_1.just_fyi("Mark all as read") @@ -118,6 +121,7 @@ class TestActivityCenterContactRequestMultipleDevicePR(MultipleSharedDeviceTestC self.errors.append("Contact was not added to contact list after accepting contact request (as receiver)") self.device_2.just_fyi('Device1 check that contact appeared in contact list mutually') + self.home_2.click_system_back_button_until_element_is_shown() self.home_2.chats_tab.click() self.home_2.contacts_tab.click() if not self.home_2.contact_details_row(username=self.username_1).is_element_displayed(20): diff --git a/test/appium/views/sign_in_view.py b/test/appium/views/sign_in_view.py index e264cb9f27..3c339f1737 100644 --- a/test/appium/views/sign_in_view.py +++ b/test/appium/views/sign_in_view.py @@ -228,6 +228,7 @@ class SignInView(BaseView): self.show_profiles_button.wait_and_click(20) self.plus_profiles_button.click() self.create_new_profile_button.click() + self.generate_keys_button.click_until_presence_of_element(self.profile_your_name_edit_box) else: self.i_m_new_in_status_button.click_until_presence_of_element(self.generate_keys_button) self.generate_keys_button.click_until_presence_of_element(self.profile_your_name_edit_box)