2023-09-01 11:18:04 +00:00
|
|
|
import allure
|
|
|
|
|
2023-10-06 08:33:42 +00:00
|
|
|
from gui.elements.button import Button
|
2023-11-01 13:58:38 +00:00
|
|
|
from gui.elements.object import QObject
|
2023-09-01 11:18:04 +00:00
|
|
|
|
|
|
|
|
2023-11-01 13:58:38 +00:00
|
|
|
class SigningPhrasePopup(QObject):
|
2023-09-01 11:18:04 +00:00
|
|
|
|
|
|
|
def __init__(self):
|
2023-11-01 13:58:38 +00:00
|
|
|
super(SigningPhrasePopup, self).__init__('signPhrase_Ok_Button')
|
2023-09-01 11:18:04 +00:00
|
|
|
self._ok_got_it_button = Button('signPhrase_Ok_Button')
|
|
|
|
|
|
|
|
@allure.step('Confirm signing phrase in popup')
|
|
|
|
def confirm_phrase(self):
|
|
|
|
self._ok_got_it_button.click()
|
2023-10-09 17:04:29 +00:00
|
|
|
SigningPhrasePopup().wait_until_hidden()
|
2023-11-01 13:58:38 +00:00
|
|
|
|
|
|
|
@allure.step('Verify if the signing phrase popup is visible')
|
|
|
|
def is_ok_got_it_button_visible(self):
|
|
|
|
return self._ok_got_it_button.is_visible
|