test(Onboarding and Wallet) Fixes of user sign up with profile image test and using Keycard wallet test

This commit is contained in:
Valentina Novgorodtceva 2023-08-15 15:14:14 +07:00 committed by Anastasiya Semenkevich
parent bb2f24693e
commit e9d0727ea1
5 changed files with 5 additions and 8 deletions

View File

@ -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"

View File

@ -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):

View File

@ -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"

View File

@ -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|\"")

View File

@ -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