2024-05-29 12:45:06 +00:00
|
|
|
import allure
|
|
|
|
import pytest
|
|
|
|
import driver
|
2024-09-05 11:40:46 +00:00
|
|
|
from configs import WALLET_SEED
|
|
|
|
from constants import ReturningUser
|
2024-09-08 07:33:42 +00:00
|
|
|
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
|
2024-05-29 12:45:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
@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
|
2024-09-12 14:28:43 +00:00
|
|
|
@pytest.mark.parametrize('receiver_account_address, amount, asset', [
|
|
|
|
pytest.param('0x44ddd47a0c7681a5b0fa080a56cbb7701db4bb43', 1, '')
|
2024-05-29 12:45:06 +00:00
|
|
|
])
|
|
|
|
@pytest.mark.timeout(timeout=120)
|
2024-09-12 14:28:43 +00:00
|
|
|
def test_wallet_send_nft(main_window, user_account, receiver_account_address, amount, asset):
|
2024-09-08 07:33:42 +00:00
|
|
|
user_account = ReturningUser(
|
|
|
|
seed_phrase=WALLET_SEED,
|
|
|
|
status_address='0x44ddd47a0c7681a5b0fa080a56cbb7701db4bb43')
|
2024-09-07 12:03:07 +00:00
|
|
|
|
2024-09-08 07:33:42 +00:00
|
|
|
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)
|
2024-09-12 14:28:43 +00:00
|
|
|
send_popup.send(receiver_account_address, amount, asset)
|
2024-09-08 07:33:42 +00:00
|
|
|
authenticate_with_password(user_account)
|
|
|
|
assert WalletTransactions.TRANSACTION_PENDING_TOAST_MESSAGE.value in ' '.join(
|
|
|
|
main_window.wait_for_notification())
|