mirror of
https://github.com/status-im/status-react.git
synced 2025-02-17 05:16:46 +00:00
e2e: nightly flaky fixes
This commit is contained in:
parent
81f37e0a63
commit
25057b3968
@ -1132,8 +1132,8 @@ class TestEnsStickersMultipleDevicesMerged(MultipleSharedDeviceTestCase):
|
|||||||
|
|
||||||
self.home_1.just_fyi('Install free sticker pack and use it in 1-1 chat on Ropsten')
|
self.home_1.just_fyi('Install free sticker pack and use it in 1-1 chat on Ropsten')
|
||||||
self.home_1.get_chat(self.ens).click()
|
self.home_1.get_chat(self.ens).click()
|
||||||
self.chat_1.install_sticker_pack_by_name('Status Cat')
|
|
||||||
self.chat_1.chat_message_input.clear()
|
self.chat_1.chat_message_input.clear()
|
||||||
|
self.chat_1.install_sticker_pack_by_name('Status Cat')
|
||||||
self.chat_1.sticker_icon.click()
|
self.chat_1.sticker_icon.click()
|
||||||
if not self.chat_1.sticker_message.is_element_displayed():
|
if not self.chat_1.sticker_message.is_element_displayed():
|
||||||
self.errors.append('Sticker was not sent')
|
self.errors.append('Sticker was not sent')
|
||||||
|
@ -253,8 +253,7 @@ class TestWalletManagementDeviceMerged(MultipleSharedDeviceTestCase):
|
|||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(700762)
|
@marks.testrail_id(700762)
|
||||||
@marks.xfail(reason="flaky; on e2e builds when switching on rinkeby sometimes no collectibles")
|
def test_wallet_add_account_seed_phrase_validation(self):
|
||||||
def test_wallet_add_account_seed_phrase_collectibles_rinkeby_set_as_profile_image(self):
|
|
||||||
user = wallet_users['E']
|
user = wallet_users['E']
|
||||||
self.wallet.driver.set_network_connection(6)
|
self.wallet.driver.set_network_connection(6)
|
||||||
account_seed_collectibles = self.account_seed_collectibles
|
account_seed_collectibles = self.account_seed_collectibles
|
||||||
@ -270,71 +269,19 @@ class TestWalletManagementDeviceMerged(MultipleSharedDeviceTestCase):
|
|||||||
self.wallet.account_name_input.send_keys(account_seed_collectibles)
|
self.wallet.account_name_input.send_keys(account_seed_collectibles)
|
||||||
self.wallet.add_account_generate_account_button.click()
|
self.wallet.add_account_generate_account_button.click()
|
||||||
if self.wallet.get_account_by_name(account_seed_collectibles).is_element_displayed():
|
if self.wallet.get_account_by_name(account_seed_collectibles).is_element_displayed():
|
||||||
self.driver.fail('Account is added without seed phrase')
|
self.wallet.driver.fail('Account is added without seed phrase')
|
||||||
self.wallet.enter_seed_phrase_input.set_value(str(wallet_users['D']['passphrase']).upper())
|
self.wallet.enter_seed_phrase_input.set_value(str(wallet_users['D']['passphrase']).upper())
|
||||||
self.wallet.add_account_generate_account_button.click()
|
self.wallet.add_account_generate_account_button.click()
|
||||||
if self.wallet.get_account_by_name(account_seed_collectibles).is_element_displayed():
|
if self.wallet.get_account_by_name(account_seed_collectibles).is_element_displayed():
|
||||||
self.driver.fail('Same account was added twice')
|
self.wallet.driver.fail('Same account was added twice')
|
||||||
|
|
||||||
self.wallet.enter_your_password_input.send_keys(common_password)
|
self.wallet.enter_your_password_input.send_keys(common_password)
|
||||||
self.wallet.enter_seed_phrase_input.set_value(str(user['passphrase']).upper())
|
self.wallet.enter_seed_phrase_input.set_value(str(user['passphrase']).upper())
|
||||||
self.wallet.account_name_input.send_keys(account_seed_collectibles)
|
self.wallet.account_name_input.send_keys(account_seed_collectibles)
|
||||||
self.wallet.add_account_generate_account_button.click()
|
self.wallet.add_account_generate_account_button.click()
|
||||||
account_button = self.wallet.get_account_by_name(account_seed_collectibles)
|
account_button = self.wallet.get_account_by_name(account_seed_collectibles)
|
||||||
|
if not account_button.is_element_displayed(10):
|
||||||
self.home.just_fyi('Check that collectibles amount is shown on Rinkeby')
|
self.wallet.driver.fail("No multiaccount from seed is added")
|
||||||
profile = self.home.profile_button.click()
|
|
||||||
profile.switch_network('Rinkeby with upstream RPC')
|
|
||||||
profile.wallet_button.click()
|
|
||||||
if not account_button.is_element_displayed():
|
|
||||||
self.wallet.accounts_status_account.swipe_left_on_element()
|
|
||||||
account_button.click()
|
|
||||||
self.wallet.collectibles_button.click()
|
|
||||||
self.wallet.element_by_translation_id("display-collectibles").scroll_and_click()
|
|
||||||
# Workaround for situation when after switching network from Ropsten collectibles are not shown
|
|
||||||
self.wallet.pull_to_refresh(5)
|
|
||||||
if self.wallet.element_by_translation_id("no-collectibles").is_element_displayed():
|
|
||||||
self.wallet.reopen_app()
|
|
||||||
profile.wallet_button.click()
|
|
||||||
if not account_button.is_element_displayed():
|
|
||||||
self.wallet.accounts_status_account.swipe_left_on_element()
|
|
||||||
account_button.click()
|
|
||||||
self.wallet.collectibles_button.click()
|
|
||||||
for asset in user['collectibles']:
|
|
||||||
self.wallet.get_collectibles_amount(asset).scroll_to_element()
|
|
||||||
if self.wallet.get_collectibles_amount(asset).text != user['collectibles'][asset]:
|
|
||||||
self.errors.append(
|
|
||||||
'%s %s is not shown in Collectibles for Rinkeby!' % (user['collectibles'][asset], asset))
|
|
||||||
|
|
||||||
self.wallet.just_fyi('Check that you can open collectible to view')
|
|
||||||
nft, nft_name = 'Coins & Steel Exclusive Item Skin V2', "Warlock's Arm"
|
|
||||||
self.wallet.get_collectibles_amount(nft).click()
|
|
||||||
if not self.wallet.nft_asset_button.is_element_displayed(60):
|
|
||||||
self.driver.fail("No card is not shown for %s after opening it from collectibles!" % nft)
|
|
||||||
self.wallet.nft_asset_button.click()
|
|
||||||
self.wallet.set_collectible_as_profile_photo_button.scroll_and_click()
|
|
||||||
|
|
||||||
self.wallet.just_fyi('Check that you can set collectible as profile photo')
|
|
||||||
web_view = self.wallet.get_base_web_view()
|
|
||||||
self.wallet.view_collectible_on_opensea_button.click_until_presence_of_element(
|
|
||||||
web_view.browser_previous_page_button)
|
|
||||||
web_view.wait_for_d_aap_to_load()
|
|
||||||
if not web_view.element_by_text(nft_name).is_element_displayed(30):
|
|
||||||
self.errors.append("Collectible can't be opened when tapping 'View on OpenSea' via NFT page")
|
|
||||||
self.wallet.wallet_button.click()
|
|
||||||
|
|
||||||
self.wallet.just_fyi('Check that collectibles are not shown when sending assets from wallet')
|
|
||||||
send_transaction = self.wallet.send_transaction_button.click()
|
|
||||||
send_transaction.select_asset_button.click()
|
|
||||||
if send_transaction.asset_by_name(nft).is_element_displayed():
|
|
||||||
self.errors.append('Collectibles can be sent from wallet')
|
|
||||||
self.wallet.close_send_transaction_view_button.double_click()
|
|
||||||
|
|
||||||
self.wallet.just_fyi("Check that custom image from collectible is set as profile photo")
|
|
||||||
self.wallet.profile_button.double_click()
|
|
||||||
if not profile.profile_picture.is_element_image_similar_to_template('collectible_pic.png'):
|
|
||||||
self.errors.append("Collectible image is not set as profile image")
|
|
||||||
self.errors.verify_no_errors()
|
|
||||||
|
|
||||||
@marks.testrail_id(700766)
|
@marks.testrail_id(700766)
|
||||||
def test_wallet_fetching_balance_after_offline_insufficient_funds_errors(self):
|
def test_wallet_fetching_balance_after_offline_insufficient_funds_errors(self):
|
||||||
|
@ -222,6 +222,7 @@ class TestTimelineHistoryNodesBootnodesMultipleDeviceMergedMedium(MultipleShared
|
|||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(702287)
|
@marks.testrail_id(702287)
|
||||||
|
@marks.xfail(reason="may be failed due to #13333")
|
||||||
def test_profile_can_not_connect_to_custom_history_node_add_delete(self):
|
def test_profile_can_not_connect_to_custom_history_node_add_delete(self):
|
||||||
self.home_1.profile_button.double_click()
|
self.home_1.profile_button.double_click()
|
||||||
self.home_2.home_button.double_click()
|
self.home_2.home_button.double_click()
|
||||||
|
@ -665,6 +665,56 @@ class TestChatManagement(SingleDeviceTestCase):
|
|||||||
# self.driver.fail("Custom fee is not applied!")
|
# self.driver.fail("Custom fee is not applied!")
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
@marks.testrail_id(702360)
|
||||||
|
@marks.xfail(reason="flaky; on e2e builds when switching on rinkeby sometimes no collectibles")
|
||||||
|
def test_collectibles_rinkeby_set_as_profile_image(self):
|
||||||
|
user = wallet_users['E']
|
||||||
|
sign_in = SignInView(self.driver)
|
||||||
|
home = sign_in.recover_access(user['passphrase'])
|
||||||
|
|
||||||
|
home.just_fyi('Check that collectibles amount is shown on Rinkeby')
|
||||||
|
profile = home.profile_button.click()
|
||||||
|
profile.switch_network('Rinkeby with upstream RPC')
|
||||||
|
wallet = profile.wallet_button.click()
|
||||||
|
wallet.accounts_status_account.click()
|
||||||
|
wallet.collectibles_button.click()
|
||||||
|
wallet.element_by_translation_id("display-collectibles").scroll_and_click()
|
||||||
|
for asset in user['collectibles']:
|
||||||
|
wallet.get_collectibles_amount(asset).scroll_to_element()
|
||||||
|
if wallet.get_collectibles_amount(asset).text != user['collectibles'][asset]:
|
||||||
|
self.errors.append(
|
||||||
|
'%s %s is not shown in Collectibles for Rinkeby!' % (user['collectibles'][asset], asset))
|
||||||
|
|
||||||
|
wallet.just_fyi('Check that you can open collectible to view')
|
||||||
|
nft, nft_name = 'Coins & Steel Exclusive Item Skin V2', "Warlock's Arm"
|
||||||
|
wallet.get_collectibles_amount(nft).click()
|
||||||
|
if not wallet.nft_asset_button.is_element_displayed(60):
|
||||||
|
self.driver.fail("No card is not shown for %s after opening it from collectibles!" % nft)
|
||||||
|
wallet.nft_asset_button.click()
|
||||||
|
wallet.set_collectible_as_profile_photo_button.scroll_and_click()
|
||||||
|
|
||||||
|
wallet.just_fyi('Check that you can set collectible as profile photo')
|
||||||
|
web_view = wallet.get_base_web_view()
|
||||||
|
wallet.view_collectible_on_opensea_button.click_until_presence_of_element(
|
||||||
|
web_view.browser_previous_page_button)
|
||||||
|
web_view.wait_for_d_aap_to_load()
|
||||||
|
if not web_view.element_by_text(nft_name).is_element_displayed(30):
|
||||||
|
self.errors.append("Collectible can't be opened when tapping 'View on OpenSea' via NFT page")
|
||||||
|
wallet.wallet_button.click()
|
||||||
|
|
||||||
|
wallet.just_fyi('Check that collectibles are not shown when sending assets from wallet')
|
||||||
|
send_transaction = wallet.send_transaction_button.click()
|
||||||
|
send_transaction.select_asset_button.click()
|
||||||
|
if send_transaction.asset_by_name(nft).is_element_displayed():
|
||||||
|
self.errors.append('Collectibles can be sent from wallet')
|
||||||
|
wallet.close_send_transaction_view_button.double_click()
|
||||||
|
|
||||||
|
wallet.just_fyi("Check that custom image from collectible is set as profile photo")
|
||||||
|
wallet.profile_button.double_click()
|
||||||
|
if not profile.profile_picture.is_element_image_similar_to_template('collectible_pic.png'):
|
||||||
|
self.errors.append("Collectible image is not set as profile image")
|
||||||
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(695890)
|
@marks.testrail_id(695890)
|
||||||
def test_profile_use_another_fleets_balance_bsc_xdai_advanced_set_nonce(self):
|
def test_profile_use_another_fleets_balance_bsc_xdai_advanced_set_nonce(self):
|
||||||
user = user_mainnet
|
user = user_mainnet
|
||||||
@ -701,12 +751,12 @@ class TestChatManagement(SingleDeviceTestCase):
|
|||||||
wallet = home.wallet_button.click()
|
wallet = home.wallet_button.click()
|
||||||
wallet.scan_tokens()
|
wallet.scan_tokens()
|
||||||
[wallet.wait_balance_is_equal_expected_amount(asset, value) for asset, value in user['mainnet'].items()]
|
[wallet.wait_balance_is_equal_expected_amount(asset, value) for asset, value in user['mainnet'].items()]
|
||||||
|
# TODO: blocked due to 695890
|
||||||
home.just_fyi("Check balance on xDai and default network fee")
|
# home.just_fyi("Check balance on xDai and default network fee")
|
||||||
profile = home.profile_button.click()
|
# profile = home.profile_button.click()
|
||||||
profile.switch_network('xDai Chain')
|
# profile.switch_network('xDai Chain')
|
||||||
home.wallet_button.click()
|
# home.wallet_button.click()
|
||||||
wallet.element_by_text(user['xdai']).wait_for_element(30)
|
# wallet.element_by_text(user['xdai']).wait_for_element(30)
|
||||||
|
|
||||||
home.just_fyi("Check balance on BSC and default network fee")
|
home.just_fyi("Check balance on BSC and default network fee")
|
||||||
profile = home.profile_button.click()
|
profile = home.profile_button.click()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user