import allure import pytest import driver from configs import WALLET_SEED from constants import ReturningUser from constants.wallet import WalletTransactions, WalletNetworkSettings from helpers.OnboardingHelper import open_generate_new_keys_view, open_import_seed_view_and_do_import, \ finalize_onboarding_and_login from helpers.SettingsHelper import enable_testnet_mode from helpers.WalletHelper import authenticate_with_password, open_send_modal_for_account @allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/704602', 'Send: can send ERC 721 token (collectible) to address pasted into receiver field with Simple flow') @pytest.mark.case(704602) @pytest.mark.transaction @pytest.mark.parametrize('receiver_account_address, amount, asset', [ pytest.param('0x44ddd47a0c7681a5b0fa080a56cbb7701db4bb43', 1, '') ]) @pytest.mark.timeout(timeout=120) def test_wallet_send_nft(main_window, user_account, receiver_account_address, amount, asset): user_account = ReturningUser( seed_phrase=WALLET_SEED, status_address='0x44ddd47a0c7681a5b0fa080a56cbb7701db4bb43') keys_screen = open_generate_new_keys_view() profile_view = open_import_seed_view_and_do_import(keys_screen, user_account.seed_phrase, user_account) finalize_onboarding_and_login(profile_view, user_account) enable_testnet_mode(main_window) send_popup = open_send_modal_for_account( main_window, account_name=WalletNetworkSettings.STATUS_ACCOUNT_DEFAULT_NAME) send_popup.send(receiver_account_address, amount, asset) authenticate_with_password(user_account) assert WalletTransactions.TRANSACTION_SENDING_TOAST_MESSAGE.value in ' '.join( main_window.wait_for_notification())