2023-08-04 18:27:03 +00:00
|
|
|
import allure
|
|
|
|
|
|
|
|
from gui.components.base_popup import BasePopup
|
2023-10-06 08:33:42 +00:00
|
|
|
from gui.elements.button import Button
|
|
|
|
from gui.elements.check_box import CheckBox
|
2023-11-16 10:48:17 +00:00
|
|
|
from gui.elements.object import QObject
|
2023-08-04 18:27:03 +00:00
|
|
|
|
|
|
|
|
2023-11-16 10:48:17 +00:00
|
|
|
class BetaConsentPopup(QObject):
|
2023-08-04 18:27:03 +00:00
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
self._agree_to_use_checkbox = CheckBox('agreeToUse_StatusCheckBox')
|
|
|
|
self._ready_to_use_checkbox = CheckBox('readyToUse_StatusCheckBox')
|
|
|
|
self._ready_to_use_button = Button('i_m_ready_to_use_Status_Desktop_Beta_StatusButton')
|
2023-11-16 10:48:17 +00:00
|
|
|
super(BetaConsentPopup, self).__init__('betaConsent_StatusModal')
|
2023-08-04 18:27:03 +00:00
|
|
|
|
|
|
|
@allure.step('Confirm all')
|
|
|
|
def confirm(self):
|
|
|
|
self._agree_to_use_checkbox.set(True)
|
|
|
|
self._ready_to_use_checkbox.set(True)
|
|
|
|
self._ready_to_use_button.click()
|
|
|
|
self.wait_until_hidden()
|