From afa4e2ebe176deee1e54aaff88ab60869ac97c87 Mon Sep 17 00:00:00 2001 From: Anastasiya Date: Fri, 7 Feb 2025 16:52:53 +0300 Subject: [PATCH] test wait methods --- test/e2e/gui/screens/settings_messaging.py | 9 +++++---- test/e2e/gui/screens/wallet.py | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/test/e2e/gui/screens/settings_messaging.py b/test/e2e/gui/screens/settings_messaging.py index f23446e24be..f1657771809 100644 --- a/test/e2e/gui/screens/settings_messaging.py +++ b/test/e2e/gui/screens/settings_messaging.py @@ -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': diff --git a/test/e2e/gui/screens/wallet.py b/test/e2e/gui/screens/wallet.py index a8cb6c971e6..6182786b4b7 100644 --- a/test/e2e/gui/screens/wallet.py +++ b/test/e2e/gui/screens/wallet.py @@ -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):