e2e: fixes after testet mode enabled changes

This commit is contained in:
Yevheniia Berdnyk 2024-04-03 15:51:48 +03:00
parent a52bc11592
commit 288f57192a
No known key found for this signature in database
GPG Key ID: 0642C73C66214825
6 changed files with 10 additions and 10 deletions

View File

@ -25,7 +25,7 @@ class TestActivityCenterContactRequestMultipleDevicePR(MultipleSharedDeviceTestC
self.profile_1, self.profile_2 = self.home_1.get_profile_view(), self.home_2.get_profile_view()
self.public_key_1 = self.home_1.get_public_key()
self.profile_link_2 = self.home_2.get_link_to_profile()
self.home_2.close_share_tab_button.click_until_absense_of_element(self.home_2.link_to_profile_text)
self.home_2.close_share_tab_button.click_until_absense_of_element(self.home_2.link_to_profile_button)
[home.navigate_back_to_home_view() for home in self.homes]
[home.chats_tab.click() for home in self.homes]

View File

@ -147,7 +147,8 @@ class TestOneToOneChatMultipleSharedDevicesNewUi(MultipleSharedDeviceTestCase):
url_message = 'Test with link: https://status.im/ here should be nothing unusual.'
self.chat_1.send_message(url_message)
self.chat_2.chat_element_by_text(url_message).wait_for_element(20)
self.chat_2.quote_message(url_message)
self.chat_2.chat_element_by_text(url_message).long_press_element_by_coordinate(rel_x=0.8, rel_y=0.8)
self.chat_2.reply_message_button.click()
self.chat_2.send_message(reply)
replied_message = self.chat_1.chat_element_by_text(reply)
if replied_message.replied_message_text != url_message:

View File

@ -477,7 +477,8 @@ class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase):
self.channel_2.navigate_back_to_chat_view()
self.channel_2.just_fyi("Can reply to images")
self.channel_2.quote_message(image_description)
self.channel_2.chat_element_by_text(image_description).long_press_element_by_coordinate(rel_x=0.8, rel_y=0.8)
self.channel_2.reply_message_button.click()
message_text = 'reply to image'
self.channel_2.chat_message_input.send_keys(message_text)
self.channel_2.send_message_button.click()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 KiB

After

Width:  |  Height:  |  Size: 250 KiB

View File

@ -247,9 +247,7 @@ class HomeView(BaseView):
accessibility_id="create-token-gated-community")
self.ens_banner_close_button = Button(self.driver, accessibility_id=":ens-banner-close-button")
self.user_name_text = Text(
self.driver,
xpath="//*[@content-desc='new-contact-button']/preceding-sibling::*[1]/*[@content-desc='user-avatar']" + \
"/following-sibling::android.widget.TextView[1]")
self.driver, xpath="//*[@text='User found']/following-sibling::*/android.widget.TextView[1]")
# Notification centre
self.notifications_button = Button(self.driver, accessibility_id="notifications-button")

View File

@ -540,11 +540,11 @@ class ProfileView(BaseView):
return self.active_network_name.text
def get_sync_code(self):
# Pointing to legacy profile until feature is
self.syncing_button.scroll_and_click()
self.sync_plus_button.click()
self.slide_button_track.swipe_right_on_element(width_percentage=1.3)
self.password_input.send_keys(common_password)
password_input = self.password_input.find_element()
password_input.send_keys(common_password)
self.login_button.click()
self.element_by_translation_id("copy-qr").click()
return self.driver.get_clipboard_text()
self.wait_for_staleness_of_element(password_input)
return self.password_input.text