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
|
2024-02-13 09:04:24 +00:00
|
|
|
from gui.objects_map import names
|
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):
|
2024-10-10 10:26:23 +00:00
|
|
|
super().__init__(names.betaConsent_StatusModal)
|
2024-02-13 09:04:24 +00:00
|
|
|
self._agree_to_use_checkbox = CheckBox(names.agreeToUse_StatusCheckBox)
|
|
|
|
self._ready_to_use_checkbox = CheckBox(names.readyToUse_StatusCheckBox)
|
|
|
|
self._ready_to_use_button = Button(names.i_m_ready_to_use_Status_Desktop_Beta_StatusButton)
|
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)
|
2024-10-07 11:45:43 +00:00
|
|
|
# TODO https://github.com/status-im/status-desktop/issues/15345
|
|
|
|
self._ready_to_use_button.click(timeout=60)
|
2023-08-04 18:27:03 +00:00
|
|
|
self.wait_until_hidden()
|