From 16526818975d8128579198aa494234337b3456ed Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 17 Oct 2022 10:20:07 +0200 Subject: [PATCH] test(@wallet): enable all wallet test --- test/ui-test/src/screens/SettingsScreen.py | 2 +- .../testSuites/suite_wallet/config.xml | 8 ++ .../testSuites/suite_wallet/suite.conf | 1 + .../suite_wallet/tst_wallet/test.feature | 97 ++++++------------- 4 files changed, 38 insertions(+), 70 deletions(-) create mode 100644 test/ui-test/testSuites/suite_wallet/config.xml diff --git a/test/ui-test/src/screens/SettingsScreen.py b/test/ui-test/src/screens/SettingsScreen.py index 887226aafe..c4df1d59c2 100644 --- a/test/ui-test/src/screens/SettingsScreen.py +++ b/test/ui-test/src/screens/SettingsScreen.py @@ -234,7 +234,7 @@ class SettingsScreen: accountName = get_obj(WalletSettingsScreen.ACCOUNT_VIEW_ACCOUNT_NAME.value) iconSettings = get_obj(WalletSettingsScreen.ACCOUNT_VIEW_ICON_SETTINGS.value) verify_values_equal(str(accountName.text), str(new_name), "Edited account name not updated") - verify_values_equal(str(iconSettings.icon.color.name), str(new_color.lower()), "Edited account color not updated") + verify_values_equal(str(iconSettings.asset.color.name), str(new_color.lower()), "Edited account color not updated") def open_communities_section(self): click_obj_by_name(SidebarComponents.COMMUNITIES_OPTION.value) diff --git a/test/ui-test/testSuites/suite_wallet/config.xml b/test/ui-test/testSuites/suite_wallet/config.xml new file mode 100644 index 0000000000..27738dbabd --- /dev/null +++ b/test/ui-test/testSuites/suite_wallet/config.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/test/ui-test/testSuites/suite_wallet/suite.conf b/test/ui-test/testSuites/suite_wallet/suite.conf index efa86da3b6..0e0d08193b 100644 --- a/test/ui-test/testSuites/suite_wallet/suite.conf +++ b/test/ui-test/testSuites/suite_wallet/suite.conf @@ -1,4 +1,5 @@ AUT=nim_status_client +ENVVARS=envvars LANGUAGE=Python OBJECTMAPSTYLE=script TEST_CASES=tst_wallet tst_transaction diff --git a/test/ui-test/testSuites/suite_wallet/tst_wallet/test.feature b/test/ui-test/testSuites/suite_wallet/tst_wallet/test.feature index 485d85dbc1..e3408843ec 100644 --- a/test/ui-test/testSuites/suite_wallet/tst_wallet/test.feature +++ b/test/ui-test/testSuites/suite_wallet/tst_wallet/test.feature @@ -10,45 +10,36 @@ Feature: Status Desktop Wallet When the user activates wallet and opens the wallet section When the user accepts the signing phrase - @mayfail - Scenario Outline: User adds a watch only account and is able to view transactions - When the user adds watch only account with and
- Then the new account is added - And the transactions are listed for the added account - Examples: - | account_name | address | - | one | 0x8397bc3c5a60a1883174f722403d63a8833312b7 | - | two | 0xf51ba8631618b9b3521ff4eb9adfd8a837455226 | + Scenario: User can observe an account data + When the user opens app settings screen + And the user opens the wallet settings + And the user toggles test networks + And the user opens wallet screen + And the user imports a seed phrase with one and TesTEr16843/!@00 and pelican chief sudden oval media rare swamp elephant lawsuit wheat knife initial + Then the new account one is added + And the user has a positive balance of ETH + And the user has a positive balance of STT + # And the collectibles are listed for the one + And the transactions are listed for the added account - Scenario Outline: User generates a new account from wallet - When the user generates a new account with and TesTEr16843/!@00 - Then the new account is added - When the user deletes the account - Then the account is not in the list of accounts - - Examples: - | account_name | - | one | - - @mayfail - Scenario Outline: User imports a private key - When the user imports a private key with and TesTEr16843/!@00 and - Then the new account is added - - Examples: - | account_name | private_key | - | one | 8da4ef21b864d2cc526dbdb2a120bd2874c36c9d0a1fb7f8c63d7f7a8b41de8f | - - @mayfail - Scenario Outline: User imports a seed phrase - When the user imports a seed phrase with and TesTEr16843/!@00 and - Then the new account is added - - Examples: - | account_name | seed_phrase | - | one | indoor dish desk flag debris potato excuse depart ticket judge file exit | + Scenario: User can manage a list of accounts + When the user adds watch only account with AccountWatch and 0x8397bc3c5a60a1883174f722403d63a8833312b7 + Then the new account AccountWatch is added + When the user imports a private key with AccountPrivate and TesTEr16843/!@00 and 8da4ef21b864d2cc526dbdb2a120bd2874c36c9d0a1fb7f8c63d7f7a8b41de8f + Then the new account AccountPrivate is added + When the user imports a seed phrase with AccountSeed and TesTEr16843/!@00 and pelican chief sudden oval media rare swamp elephant lawsuit wheat knife initial + Then the new account AccountSeed is added + When the user generates a new account with AccountGenerated and TesTEr16843/!@00 + Then the new account AccountGenerated is added + When the user deletes the account AccountGenerated + Then the account AccountGenerated is not in the list of accounts + When the user opens app settings screen + And the user opens the wallet settings + And the user selects the default account + And the user edits default account to Default name and #FFCA0F color + Then the new account with name DefaultStatus account and color #FFCA0F is updated Scenario Outline: User can manage a saved address @@ -63,36 +54,4 @@ Feature: Status Desktop Wallet Examples: | name | address | new_name | - | bar | 0x8397bc3c5a60a1883174f722403d63a8833312b7 | foo | - - @mayfail - Scenario: User can toggle network and see balances - When the user opens app settings screen - And the user opens the wallet settings - And the user toggles test networks - And the user opens wallet screen - And the user imports a seed phrase with one and TesTEr16843/!@00 and pelican chief sudden oval media rare swamp elephant lawsuit wheat knife initial - Then the new account one is added - And the user has a positive balance of ETH - And the user has a positive balance of STT - - @mayfail - Scenario Outline: User can edit the default wallet account - When the user opens app settings screen - And the user opens the wallet settings - And the user selects the default account - And the user edits default account to name and color - Then the new account with name Status account and color is updated - - Examples: - | new_name | new_color | - | Default | #FFCA0F | - - @mayfail - Scenario Outline: Can see collectibles for an account - When the user adds watch only account with and
- Then the collectibles are listed for the - - Examples: - | account_name | address | - | One | 0x8397bc3c5a60a1883174f722403d63a8833312b7 | + | bar | 0x8397bc3c5a60a1883174f722403d63a8833312b7 | foo | \ No newline at end of file