Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e: fix for creating second user #16818

Merged
merged 1 commit into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/appium/tests/medium/test_activity_center.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def test_activity_center_contact_request_accept_swipe_mark_all_as_read(self):

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()
Expand All @@ -99,6 +100,8 @@ def test_activity_center_contact_request_accept_swipe_mark_all_as_read(self):
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")
Expand All @@ -118,6 +121,7 @@ def test_activity_center_contact_request_accept_swipe_mark_all_as_read(self):
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):
Expand Down
1 change: 1 addition & 0 deletions test/appium/views/sign_in_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def create_user(self, password=common_password, keycard=False, enable_notificati
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)
Expand Down