chore: add timeout for clicks

This commit is contained in:
Anastasiya Semenkevich 2024-09-30 12:48:45 +03:00 committed by Anastasiya
parent 83d7c03585
commit 87e91de90c
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ class SignOutPopup(BasePopup):
@allure.step('Click sign out and quit button') @allure.step('Click sign out and quit button')
def sign_out_and_quit(self, attempts: int = 2): def sign_out_and_quit(self, attempts: int = 2):
try: try:
self._sign_out_and_quit_button.click() self._sign_out_and_quit_button.click(timeout=10)
except Exception as ec: except Exception as ec:
if attempts: if attempts:
self.sign_out_and_quit(attempts-1) self.sign_out_and_quit(attempts-1)

View File

@ -13,7 +13,7 @@ class SigningPhrasePopup(QObject):
@allure.step('Confirm signing phrase in popup') @allure.step('Confirm signing phrase in popup')
def confirm_phrase(self): def confirm_phrase(self):
self._ok_got_it_button.click() self._ok_got_it_button.click(timeout=10)
SigningPhrasePopup().wait_until_hidden() SigningPhrasePopup().wait_until_hidden()
@allure.step('Verify if the signing phrase popup is visible') @allure.step('Verify if the signing phrase popup is visible')

View File

@ -580,7 +580,7 @@ class PermissionsSettingsView(QObject):
@allure.step('Click create permission') @allure.step('Click create permission')
def create_permission(self): def create_permission(self):
self._create_permission_button.click() self._create_permission_button.click(timeout=10)
self._create_permission_button.wait_until_hidden() self._create_permission_button.wait_until_hidden()
@allure.step('Open Who holds context menu') @allure.step('Open Who holds context menu')