diff --git a/test/appium/tests/atomic/account_management/test_recover.py b/test/appium/tests/atomic/account_management/test_recover.py index 54181f894d..3a527c0dcd 100644 --- a/test/appium/tests/atomic/account_management/test_recover.py +++ b/test/appium/tests/atomic/account_management/test_recover.py @@ -3,7 +3,7 @@ import pytest from support.utilities import fill_string_with_char from tests import marks, unique_password from tests.base_test_case import SingleDeviceTestCase -from tests.users import basic_user, transaction_senders +from tests.users import basic_user, transaction_senders, recovery_users from views.sign_in_view import SignInView @@ -171,3 +171,18 @@ class TestRecoverAccessFromSignInScreen(SingleDeviceTestCase): sign_in = SignInView(self.driver) sign_in.recover_access(passphrase=basic_user['passphrase'], password=basic_user['special_chars_password']) sign_in.relogin(password=basic_user['special_chars_password']) + + @marks.testrail_id(5455) + @marks.medium + def test_recover_accounts_with_certain_seedphrase(self): + sign_in = SignInView(self.driver) + for phrase, account in recovery_users.items(): + home_view = sign_in.recover_access(passphrase=phrase, password=unique_password) + wallet_view = home_view.wallet_button.click() + wallet_view.set_up_wallet() + address = wallet_view.get_wallet_address() + if address != account: + self.errors.append('Restored wallet address "%s" does not match expected "%s"' % (address, account)) + profile_view = home_view.profile_button.click() + profile_view.logout() + self.verify_no_errors() diff --git a/test/appium/tests/users.py b/test/appium/tests/users.py index 6f3f616a95..7d5a3ff047 100644 --- a/test/appium/tests/users.py +++ b/test/appium/tests/users.py @@ -316,4 +316,22 @@ transaction_recipients['J']['passphrase'] = "estate add believe wonder riot used transaction_recipients['J']['username'] = "Powderblue Pertinent Hylaeosaurus" transaction_recipients['J']['address'] = "0xa03a75b7888cac24b35b4d1f5924406f3b491795" transaction_recipients['J']['public_key'] = "0x043f622675f671b171ce136a29c1c5078b7185b38fccd0cc67d19429dbc481b358e" \ - "e7d3ef534acf263174d6821402bc998bc6baf1791dacf0eb1fc995f6ddb59c8" \ No newline at end of file + "e7d3ef534acf263174d6821402bc998bc6baf1791dacf0eb1fc995f6ddb59c8" +recovery_users = { + "radar blur cabbage chef fix engine embark joy scheme fiction master release" : + "0xaC39b311DCEb2A4b2f5d8461c1cdaF756F4F7Ae9", + "fruit wave dwarf banana earth journey tattoo true farm silk olive fence" : + "0x31a4aD7593D06D049b3Cc07aB5430264Bf7e069f", + "board flee heavy tunnel powder denial science ski answer betray cargo cat" : + "0x7B9BC6897BbbEbD5e3F1D71e1d0Af035F35a714a", + "vessel ladder alter error federal sibling chat ability sun glass valve picture" : + "0x93bb483bD2D0190d48778bA21F7D85F793bBcEd0", + "legal winner thank year wave sausage worth useful legal winner thank yellow": + "0x58A57ed9d8d624cBD12e2C467D34787555bB1b25", + "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon " + "abandon abandon abandon abandon abandon abandon abandon abandon abandon art" : + "0xF278cF59F82eDcf871d630F28EcC8056f25C1cdb", + "legal winner thank year wave sausage worth useful legal winner thank year wave sausage worth useful legal winner " + "thank year wave sausage worth title" : + "0x2f826cb22E80a2c40f149Ecb92b2Fa5ecBf67170" +} \ No newline at end of file