2023-09-22 08:44:29 +00:00
|
|
|
import allure
|
|
|
|
|
2023-10-06 08:33:42 +00:00
|
|
|
from gui.elements.button import Button
|
|
|
|
from gui.elements.object import QObject
|
2023-09-22 08:44:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ChangesDetectedToastMessage(QObject):
|
|
|
|
|
|
|
|
def __init__(self):
|
2023-10-09 17:04:29 +00:00
|
|
|
super(ChangesDetectedToastMessage, self).__init__(
|
|
|
|
'mainWindow_settingsDirtyToastMessage_SettingsDirtyToastMessage')
|
2023-09-22 08:44:29 +00:00
|
|
|
self._save_button = Button('settingsSave_StatusButton')
|
|
|
|
|
|
|
|
@allure.step('Save changes')
|
|
|
|
def save(self):
|
|
|
|
self._save_button.click()
|
|
|
|
self.wait_until_hidden()
|