chore: replaced with recommended method to check that add new account opened

This commit is contained in:
Valentina Novgorodtceva 2024-05-29 12:33:48 +07:00 committed by Valentina1133
parent d25d5cc9c8
commit 2cca033dc2
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,8 @@ class AccountPopup(BasePopup):
def click_new_master_key(self, value: str, attempts: int = 2): def click_new_master_key(self, value: str, attempts: int = 2):
self._new_master_key_origin_item.click() self._new_master_key_origin_item.click()
try: try:
return AddNewAccountPopup().wait_until_appears() AccountPopup().verify_add_account_popup_present()
return AddNewAccountPopup()
except AssertionError as err: except AssertionError as err:
if attempts: if attempts:
return self.click_new_master_key(value, attempts - 1) return self.click_new_master_key(value, attempts - 1)