e2e align new wallet cards
Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
parent
f7d7c282cd
commit
627e1d0e14
|
@ -295,6 +295,7 @@ class TestCreateAccount(SingleDeviceTestCase):
|
|||
wallet_view.just_fyi('Check that balance is changed after go back to WI-FI')
|
||||
sign_in.toggle_mobile_data()
|
||||
for asset in ('LXS', 'ADI', 'STT'):
|
||||
wallet_view.asset_by_name(asset).scroll_to_element()
|
||||
wallet_view.wait_balance_is_changed(asset, wait_time=60)
|
||||
|
||||
wallet_view.just_fyi('Delete watch-only account')
|
||||
|
|
|
@ -459,6 +459,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
|
|||
self.errors.append('Decimals for custom token was not set')
|
||||
token_view.add_button.click()
|
||||
token_view.back_button.click()
|
||||
wallet_view.asset_by_name(symbol).scroll_to_element()
|
||||
if not wallet_view.asset_by_name(symbol).is_element_displayed():
|
||||
self.errors.append('Custom token is not shown on Wallet view')
|
||||
wallet_view.accounts_status_account.click()
|
||||
|
|
|
@ -173,7 +173,8 @@ class BaseElement(object):
|
|||
return attribute_state
|
||||
|
||||
# Method-helper for renew screenshots in case if changed
|
||||
def save_new_screenshot_of_element(self, full_path_to_file: str):
|
||||
def save_new_screenshot_of_element(self, name: str):
|
||||
full_path_to_file = os.sep.join(__file__.split(os.sep)[:-1]) + '/elements_templates/%s' % name
|
||||
screen = Image.open(BytesIO(base64.b64decode(self.find_element().screenshot_as_base64)))
|
||||
screen.save(full_path_to_file)
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1006 B |
|
@ -249,7 +249,7 @@ class AccountElementButton(BaseButton):
|
|||
|
||||
def color_matches(self, expected_color_image_name: str):
|
||||
amount_text = BaseText(self.driver)
|
||||
amount_text.locator = amount_text.Locator.xpath_selector(self.locator.value + "//*[@text=' USD']")
|
||||
amount_text.locator = amount_text.Locator.xpath_selector(self.locator.value + "//*[@content-desc='account-total-value']")
|
||||
return amount_text.is_element_image_equals_template(expected_color_image_name)
|
||||
|
||||
class StatusAccountTotalValueText(BaseText):
|
||||
|
|
Loading…
Reference in New Issue