2023-09-04 18:36:48 +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
|
2023-09-04 18:36:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
class DeletePopup(BasePopup):
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
super().__init__()
|
|
|
|
self._delete_button = Button('delete_StatusButton')
|
|
|
|
|
|
|
|
@allure.step("Delete entity")
|
|
|
|
def delete(self):
|
|
|
|
self._delete_button.click()
|
|
|
|
self.wait_until_hidden()
|
2023-12-06 12:00:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
class DeleteCategoryPopup(DeletePopup):
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
super().__init__()
|
|
|
|
self._delete_button = Button('confirm_StatusButton')
|