e2e: fixes 23.04

This commit is contained in:
Yevheniia Berdnyk 2024-04-23 16:52:14 +03:00
parent 6b5c807176
commit 9b550e4b82
No known key found for this signature in database
GPG Key ID: 0642C73C66214825
4 changed files with 9 additions and 12 deletions

View File

@ -65,7 +65,7 @@ class TestActivityCenterContactRequestMultipleDevicePR(MultipleSharedDeviceTestC
self.device_1.wait_for_application_to_be_running(app_package)
self.device_1.just_fyi('Device1 verifies pending contact request')
self.home_1.contacts_tab.click()
self.home_1.contacts_tab.click_until_presence_of_element(self.home_1.pending_contact_request_text)
for indicator in (self.home_1.notifications_unread_badge, self.home_1.contact_new_badge):
if not indicator.is_element_displayed():
self.errors.append(

View File

@ -243,7 +243,8 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase):
self.home.just_fyi("Perform back up")
self.home.navigate_back_to_home_view()
profile = self.home.profile_button.click()
profile.profile_legacy_button.scroll_and_click()
profile.logout_button.scroll_to_element()
profile.profile_legacy_button.click()
profile.sync_settings_button.click()
profile.backup_settings_button.click()
profile.perform_backup_button.click()

View File

@ -60,8 +60,9 @@ class TestDeepLinksOneDevice(MultipleSharedDeviceTestCase):
self.channel.chat_message_input.clear()
self.channel.send_message(url)
self.channel.chat_element_by_text(url).click_on_link_inside_message_body()
if not self.community_view.join_button.is_element_displayed(
10) or self.community_view.community_title.text != text:
if not (self.community_view.join_button.is_element_displayed(10)
or self.community_view.join_community_button.is_element_displayed(5)) \
or self.community_view.community_title.text != text:
self.errors.append("Community '%s' was not requested to join by the url %s" % (text, url))
if text != "open community": # the last one
self.home.jump_to_card_by_text(self.community_name)
@ -103,8 +104,9 @@ class TestDeepLinksOneDevice(MultipleSharedDeviceTestCase):
for link, text in community_links.items():
self.channel.just_fyi("Opening community '%s' by the link %s" % (text, link))
self.browser_view.open_url(link)
if not self.community_view.join_button.is_element_displayed(
10) or self.community_view.community_title.text != text:
if not (self.community_view.join_button.is_element_displayed(10)
or self.community_view.join_community_button.is_element_displayed(5)) \
or self.community_view.community_title.text != text:
self.errors.append("Community '%s' was not requested to join by the deep link %s" % (text, link))
self.home.navigate_back_to_home_view()
self.home.browser_tab.click()

View File

@ -98,8 +98,6 @@ class TestWalletMultipleDevice(MultipleSharedDeviceTestCase):
self.errors.verify_no_errors()
@marks.testrail_id(727229)
@marks.xfail(reason="Assets are not shown on Sepolia, https://github.com/status-im/status-mobile/issues/19752",
run=False)
def test_wallet_send_eth(self):
sender_balance, receiver_balance, eth_amount_sender, eth_amount_receiver = self._get_balances_before_tx()
@ -115,8 +113,6 @@ class TestWalletMultipleDevice(MultipleSharedDeviceTestCase):
eth_amount_receiver)
@marks.testrail_id(727230)
@marks.xfail(reason="Assets are not shown on Sepolia, https://github.com/status-im/status-mobile/issues/19752",
run=False)
def test_wallet_send_asset_from_drawer(self):
sender_balance, receiver_balance, eth_amount_sender, eth_amount_receiver = self._get_balances_before_tx()
self.wallet_2.close_account_button.click()
@ -187,8 +183,6 @@ class TestWalletOneDevice(MultipleSharedDeviceTestCase):
self.errors.verify_no_errors()
@marks.testrail_id(727232)
@marks.xfail(reason="Can't find activity on Sepolia, https://github.com/status-im/status-mobile/issues/19752",
run=False)
def test_wallet_add_remove_watch_only_account(self):
self.wallet_view.just_fyi("Adding new watch only account")
new_account_name = "Account to watch"