Skip to content

Commit

Permalink
regression e2e fix
Browse files Browse the repository at this point in the history
Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
  • Loading branch information
churik committed Aug 6, 2020
1 parent 2371dcb commit dd67533
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 7 additions & 3 deletions test/appium/tests/atomic/account_management/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,17 @@ def test_invite_friends(self):
sign_in_view = SignInView(self.driver)
home = sign_in_view.create_user()
home.invite_friends_button.click()
# TODO: referrals temporal flow
home.element_by_text('Invite').click()
home.share_via_messenger()
home.find_text_part("Get Status at http://status.im")
home.click_system_back_button()
home.find_text_part("Hey join me on Status: https://join.status.im/u/0x")
home.click_system_back_button(2)
home.plus_button.click()
home.chats_menu_invite_friends_button.click()
# TODO: referrals temporal flow
home.element_by_text('Invite').click()
home.share_via_messenger()
home.find_text_part("Get Status at http://status.im")
home.find_text_part("Hey join me on Status: https://join.status.im/u/0x")

@marks.testrail_id(6312)
@marks.medium
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,7 @@ def test_add_and_delete_watch_only_account_to_multiaccount_instance(self):
if account_button.is_element_displayed():
self.driver.fail('Account was not deleted')
for asset in ('ETH', 'ADI', 'STT'):
balance = wallet_view.get_asset_amount_by_name(asset)
if balance != 0:
self.errors.append("Balance for %s is not updated after deleting watch-only account" % asset)
wallet_view.wait_balance_is_equal_expected_amount(asset, 0)

self.errors.verify_no_errors()

Expand Down
4 changes: 1 addition & 3 deletions test/appium/tests/atomic/transactions/test_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ def test_send_eth_from_wallet_incorrect_address(self):
send_transaction.done_button.click_until_presence_of_element(send_transaction.element_by_text_part('Invalid address'))
send_transaction.ok_button.click()
send_transaction.enter_recipient_address_input.set_value('0xDE709F2102306220921060314715629080E2fB77')
send_transaction.done_button.click()
if not send_transaction.element_by_text_part('Invalid address').is_element_displayed():
self.errors.append('Invalid EIP55 address is resolved correctly')
send_transaction.done_button.click_until_presence_of_element(send_transaction.element_by_text_part('Invalid address'))
send_transaction.ok_button.click()
self.errors.verify_no_errors()

Expand Down
2 changes: 1 addition & 1 deletion test/appium/views/profile_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class InviteFriendsInContactsButton(BaseButton):

def __init__(self, driver):
super(InviteFriendsInContactsButton, self).__init__(driver)
self.locator = self.Locator.accessibility_id('invite-friends')
self.locator = self.Locator.accessibility_id('invite-friends-button')


class NetworkSettingsButton(BaseButton):
Expand Down

0 comments on commit dd67533

Please sign in to comment.