Skip to content

Commit 288f571

Browse files
committed
e2e: fixes after testet mode enabled changes
1 parent a52bc11 commit 288f571

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

test/appium/tests/activity_center/test_activity_center.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def prepare_devices(self):
2525
self.profile_1, self.profile_2 = self.home_1.get_profile_view(), self.home_2.get_profile_view()
2626
self.public_key_1 = self.home_1.get_public_key()
2727
self.profile_link_2 = self.home_2.get_link_to_profile()
28-
self.home_2.close_share_tab_button.click_until_absense_of_element(self.home_2.link_to_profile_text)
28+
self.home_2.close_share_tab_button.click_until_absense_of_element(self.home_2.link_to_profile_button)
2929
[home.navigate_back_to_home_view() for home in self.homes]
3030
[home.chats_tab.click() for home in self.homes]
3131

test/appium/tests/critical/chats/test_1_1_public_chats.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ def test_1_1_chat_emoji_send_reply_and_open_link(self):
147147
url_message = 'Test with link: https://status.im/ here should be nothing unusual.'
148148
self.chat_1.send_message(url_message)
149149
self.chat_2.chat_element_by_text(url_message).wait_for_element(20)
150-
self.chat_2.quote_message(url_message)
150+
self.chat_2.chat_element_by_text(url_message).long_press_element_by_coordinate(rel_x=0.8, rel_y=0.8)
151+
self.chat_2.reply_message_button.click()
151152
self.chat_2.send_message(reply)
152153
replied_message = self.chat_1.chat_element_by_text(reply)
153154
if replied_message.replied_message_text != url_message:

test/appium/tests/critical/chats/test_public_chat_browsing.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,8 @@ def test_community_one_image_send_reply(self):
477477
self.channel_2.navigate_back_to_chat_view()
478478

479479
self.channel_2.just_fyi("Can reply to images")
480-
self.channel_2.quote_message(image_description)
480+
self.channel_2.chat_element_by_text(image_description).long_press_element_by_coordinate(rel_x=0.8, rel_y=0.8)
481+
self.channel_2.reply_message_button.click()
481482
message_text = 'reply to image'
482483
self.channel_2.chat_message_input.send_keys(message_text)
483484
self.channel_2.send_message_button.click()
Loading

test/appium/views/home_view.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,7 @@ def __init__(self, driver):
247247
accessibility_id="create-token-gated-community")
248248
self.ens_banner_close_button = Button(self.driver, accessibility_id=":ens-banner-close-button")
249249
self.user_name_text = Text(
250-
self.driver,
251-
xpath="//*[@content-desc='new-contact-button']/preceding-sibling::*[1]/*[@content-desc='user-avatar']" + \
252-
"/following-sibling::android.widget.TextView[1]")
250+
self.driver, xpath="//*[@text='User found']/following-sibling::*/android.widget.TextView[1]")
253251

254252
# Notification centre
255253
self.notifications_button = Button(self.driver, accessibility_id="notifications-button")

test/appium/views/profile_view.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,11 @@ def current_active_network(self):
540540
return self.active_network_name.text
541541

542542
def get_sync_code(self):
543-
# Pointing to legacy profile until feature is
544543
self.syncing_button.scroll_and_click()
545544
self.sync_plus_button.click()
546545
self.slide_button_track.swipe_right_on_element(width_percentage=1.3)
547-
self.password_input.send_keys(common_password)
546+
password_input = self.password_input.find_element()
547+
password_input.send_keys(common_password)
548548
self.login_button.click()
549-
self.element_by_translation_id("copy-qr").click()
550-
return self.driver.get_clipboard_text()
549+
self.wait_for_staleness_of_element(password_input)
550+
return self.password_input.text

0 commit comments

Comments
 (0)