e2e: fix for creating second user

This commit is contained in:
Yevheniia Berdnyk 2023-07-31 15:36:18 +03:00
parent cf11743f87
commit 96ff8ab382
No known key found for this signature in database
GPG Key ID: 0642C73C66214825
2 changed files with 5 additions and 0 deletions

View File

@ -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.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.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.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.add_a_contact_chat_bottom_sheet_button.click()
self.home_2.element_by_translation_id("paste").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.device_1.just_fyi('Device1 accepts pending contact request by swiping')
self.home_1.chats_tab.click() self.home_1.chats_tab.click()
self.home_1.notifications_unread_badge.wait_for_visibility_of_element(30) 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.open_activity_center_button.click()
self.home_1.just_fyi("Mark all as read") 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.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.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.chats_tab.click()
self.home_2.contacts_tab.click() self.home_2.contacts_tab.click()
if not self.home_2.contact_details_row(username=self.username_1).is_element_displayed(20): if not self.home_2.contact_details_row(username=self.username_1).is_element_displayed(20):

View File

@ -228,6 +228,7 @@ class SignInView(BaseView):
self.show_profiles_button.wait_and_click(20) self.show_profiles_button.wait_and_click(20)
self.plus_profiles_button.click() self.plus_profiles_button.click()
self.create_new_profile_button.click() self.create_new_profile_button.click()
self.generate_keys_button.click_until_presence_of_element(self.profile_your_name_edit_box)
else: else:
self.i_m_new_in_status_button.click_until_presence_of_element(self.generate_keys_button) 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) self.generate_keys_button.click_until_presence_of_element(self.profile_your_name_edit_box)