regression e2e fix

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2020-08-06 12:43:42 +02:00
parent 2371dcbc60
commit dd67533ecd
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
4 changed files with 10 additions and 10 deletions

View File

@ -316,13 +316,17 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
sign_in_view = SignInView(self.driver) sign_in_view = SignInView(self.driver)
home = sign_in_view.create_user() home = sign_in_view.create_user()
home.invite_friends_button.click() home.invite_friends_button.click()
# TODO: referrals temporal flow
home.element_by_text('Invite').click()
home.share_via_messenger() 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")
home.click_system_back_button() home.click_system_back_button(2)
home.plus_button.click() home.plus_button.click()
home.chats_menu_invite_friends_button.click() home.chats_menu_invite_friends_button.click()
# TODO: referrals temporal flow
home.element_by_text('Invite').click()
home.share_via_messenger() 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.testrail_id(6312)
@marks.medium @marks.medium

View File

@ -329,9 +329,7 @@ class TestWalletManagement(SingleDeviceTestCase):
if account_button.is_element_displayed(): if account_button.is_element_displayed():
self.driver.fail('Account was not deleted') self.driver.fail('Account was not deleted')
for asset in ('ETH', 'ADI', 'STT'): for asset in ('ETH', 'ADI', 'STT'):
balance = wallet_view.get_asset_amount_by_name(asset) wallet_view.wait_balance_is_equal_expected_amount(asset, 0)
if balance != 0:
self.errors.append("Balance for %s is not updated after deleting watch-only account" % asset)
self.errors.verify_no_errors() self.errors.verify_no_errors()

View File

@ -136,9 +136,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
send_transaction.done_button.click_until_presence_of_element(send_transaction.element_by_text_part('Invalid address')) send_transaction.done_button.click_until_presence_of_element(send_transaction.element_by_text_part('Invalid address'))
send_transaction.ok_button.click() send_transaction.ok_button.click()
send_transaction.enter_recipient_address_input.set_value('0xDE709F2102306220921060314715629080E2fB77') send_transaction.enter_recipient_address_input.set_value('0xDE709F2102306220921060314715629080E2fB77')
send_transaction.done_button.click() send_transaction.done_button.click_until_presence_of_element(send_transaction.element_by_text_part('Invalid address'))
if not send_transaction.element_by_text_part('Invalid address').is_element_displayed():
self.errors.append('Invalid EIP55 address is resolved correctly')
send_transaction.ok_button.click() send_transaction.ok_button.click()
self.errors.verify_no_errors() self.errors.verify_no_errors()

View File

@ -63,7 +63,7 @@ class InviteFriendsInContactsButton(BaseButton):
def __init__(self, driver): def __init__(self, driver):
super(InviteFriendsInContactsButton, self).__init__(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): class NetworkSettingsButton(BaseButton):