chore: add timeout for clicks
This commit is contained in:
parent
83d7c03585
commit
87e91de90c
|
@ -14,7 +14,7 @@ class SignOutPopup(BasePopup):
|
|||
@allure.step('Click sign out and quit button')
|
||||
def sign_out_and_quit(self, attempts: int = 2):
|
||||
try:
|
||||
self._sign_out_and_quit_button.click()
|
||||
self._sign_out_and_quit_button.click(timeout=10)
|
||||
except Exception as ec:
|
||||
if attempts:
|
||||
self.sign_out_and_quit(attempts-1)
|
||||
|
|
|
@ -13,7 +13,7 @@ class SigningPhrasePopup(QObject):
|
|||
|
||||
@allure.step('Confirm signing phrase in popup')
|
||||
def confirm_phrase(self):
|
||||
self._ok_got_it_button.click()
|
||||
self._ok_got_it_button.click(timeout=10)
|
||||
SigningPhrasePopup().wait_until_hidden()
|
||||
|
||||
@allure.step('Verify if the signing phrase popup is visible')
|
||||
|
|
|
@ -580,7 +580,7 @@ class PermissionsSettingsView(QObject):
|
|||
|
||||
@allure.step('Click create permission')
|
||||
def create_permission(self):
|
||||
self._create_permission_button.click()
|
||||
self._create_permission_button.click(timeout=10)
|
||||
self._create_permission_button.wait_until_hidden()
|
||||
|
||||
@allure.step('Open Who holds context menu')
|
||||
|
|
Loading…
Reference in New Issue