Skip to content

Commit

Permalink
test wait methods
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiyaig committed Feb 7, 2025
1 parent 614d133 commit afa4e2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions test/e2e/gui/screens/settings_messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ def __init__(self):
self._always_show_button = Button(settings_names.always_show_radioButton_StatusRadioButton)
self._never_ask_button = Button(settings_names.never_show_radioButton_StatusRadioButton)

@allure.step('Wait until appears {0}')
def wait_until_appears(self, timeout_msec: int = configs.timeouts.UI_LOAD_TIMEOUT_MSEC):
self._contacts_button.wait_until_appears(timeout_msec)
return self
# TODO: commented to test how base method works with this view
# @allure.step('Wait until appears {0}')
# def wait_until_appears(self, timeout_msec: int = configs.timeouts.UI_LOAD_TIMEOUT_MSEC):
# self._contacts_button.wait_until_appears(timeout_msec)
# return self

@allure.step('Open contacts settings')
def open_contacts_settings(self) -> 'ContactsSettingsView':
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/gui/screens/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def hide_include_in_total_balance_from_context_menu(self, account_name: str):
def open_edit_account_popup_from_context_menu(self, account_name: str) -> AccountPopup:
context_menu = self._open_context_menu_for_account(account_name)
context_menu.edit_from_context.click()
return AccountPopup().verify_edit_account_popup_present()
return AccountPopup().wait_until_appears().verify_edit_account_popup_present()

@allure.step('Open account popup')
def open_add_account_popup(self, attempt: int = 2):
Expand Down

0 comments on commit afa4e2e

Please sign in to comment.