From e9d0727ea17337654e452162d6848aee79abf34f Mon Sep 17 00:00:00 2001 From: Valentina Novgorodtceva Date: Tue, 15 Aug 2023 15:14:14 +0700 Subject: [PATCH] test(Onboarding and Wallet) Fixes of user sign up with profile image test and using Keycard wallet test --- test/ui-test/src/screens/StatusMainScreen.py | 1 + test/ui-test/src/screens/StatusWalletScreen.py | 4 +--- .../suite_onboarding/tst_statusSignUp/test.feature | 2 -- .../testSuites/suite_wallet/shared/steps/walletSteps.py | 5 +++-- .../suite_wallet/tst_wallet_accountsManagement/test.feature | 1 - 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/test/ui-test/src/screens/StatusMainScreen.py b/test/ui-test/src/screens/StatusMainScreen.py index 77dd2be9e0..ea0697a509 100644 --- a/test/ui-test/src/screens/StatusMainScreen.py +++ b/test/ui-test/src/screens/StatusMainScreen.py @@ -23,6 +23,7 @@ from .components.user_canvas import UserCanvas class MainScreenComponents(Enum): + PROFILE_NAVBAR_BUTTON = 'mainWindow_ProfileNavBarButton' MAIN_WINDOW = "statusDesktop_mainWindow" POPUP_OVERLAY = "statusDesktop_mainWindow_overlay" CHAT_NAVBAR_ICON = "navBarListView_Chat_navbar_StatusNavBarTabButton" diff --git a/test/ui-test/src/screens/StatusWalletScreen.py b/test/ui-test/src/screens/StatusWalletScreen.py index 0351f1a6b2..7172ef0370 100644 --- a/test/ui-test/src/screens/StatusWalletScreen.py +++ b/test/ui-test/src/screens/StatusWalletScreen.py @@ -333,9 +333,7 @@ class StatusWalletScreen: def accept_signing_phrase(self): click_obj_by_name(SigningPhrasePopUp.OK_GOT_IT_BUTTON.value) - def add_account_popup_go_to_keycard_settings(self): - self.add_account_popup_change_origin(AddEditAccountPopup.ORIGIN_OPTION_NEW_MASTER_KEY.value) - is_loaded_visible_and_enabled(AddEditAccountPopup.MASTER_KEY_GO_TO_KEYCARD_SETTINGS_OPTION.value) + def go_to_keycard_settings(self): click_obj_by_name(AddEditAccountPopup.MASTER_KEY_GO_TO_KEYCARD_SETTINGS_OPTION.value) def send_transaction(self, account_name, amount, token, chain_name, password): diff --git a/test/ui-test/testSuites/suite_onboarding/tst_statusSignUp/test.feature b/test/ui-test/testSuites/suite_onboarding/tst_statusSignUp/test.feature index 36630f0924..8e528628af 100644 --- a/test/ui-test/testSuites/suite_onboarding/tst_statusSignUp/test.feature +++ b/test/ui-test/testSuites/suite_onboarding/tst_statusSignUp/test.feature @@ -37,8 +37,6 @@ Feature: Status Desktop Sign Up | lemon card easy goose keen divide cabbage daughter glide glad sense dice promote present august obey stay cheese | 0xdd06a08d469dd61Cb2E5ECE30f5D16019eBe0fc9 | | provide between target maze travel enroll edge churn random sight grass lion diet sugar cable fiction reflect reason gaze camp tone maximum task unlock | 0xCb59031d11D233112CB57DFd667fE1FF6Cd7b6Da | - @mayfail - # https://github.com/status-im/status-desktop/issues/10069 Scenario: The user signs up with a profile image Given A first time user lands on the status desktop and generates new key And the user signs up with profileImage "doggo.jpeg", username "tester123" and password "TesTEr16843/!@00" diff --git a/test/ui-test/testSuites/suite_wallet/shared/steps/walletSteps.py b/test/ui-test/testSuites/suite_wallet/shared/steps/walletSteps.py index 99ee8d8c9b..706d1ca94d 100644 --- a/test/ui-test/testSuites/suite_wallet/shared/steps/walletSteps.py +++ b/test/ui-test/testSuites/suite_wallet/shared/steps/walletSteps.py @@ -112,8 +112,9 @@ def step(context, name, color, emoji, keypair_name): @When("the user adds new master key and go to use a Keycard") def step(context): - _walletScreen.left_panel.open_add_account_popup() - _walletScreen.add_account_popup_go_to_keycard_settings() + account_popup = _walletScreen.left_panel.open_add_account_popup() + account_popup.set_origin_keypair('LABEL-OPTION-ADD-NEW-MASTER-KEY') + _walletScreen.go_to_keycard_settings() @When("the user edits an account with \"|any|\" to \"|any|\" with color \"|any|\" and emoji \"|any|\"") diff --git a/test/ui-test/testSuites/suite_wallet/tst_wallet_accountsManagement/test.feature b/test/ui-test/testSuites/suite_wallet/tst_wallet_accountsManagement/test.feature index 6ffda11d31..b28841cfb8 100644 --- a/test/ui-test/testSuites/suite_wallet/tst_wallet_accountsManagement/test.feature +++ b/test/ui-test/testSuites/suite_wallet/tst_wallet_accountsManagement/test.feature @@ -162,7 +162,6 @@ Feature: Status Desktop Wallet Section Wallet Account Management | 20 | Ethereum (Ledger Live/KeepKey) | CustomGenAcc4 | 7140fd | sunglasses | 1f60e | SPKeyPair | | 95 | N/A | CustomGenAcc1 | 216266 | sunglasses | 1f60e | SPKeyPair | - @mayfail Scenario: The user adds an account and then decides to use a Keycard When the user adds new master key and go to use a Keycard Then settings keycard section is opened