status-desktop/test/e2e/gui/components/messaging/leave_group_popup.py

19 lines
429 B
Python
Raw Normal View History

2023-10-06 03:02:48 +00:00
import allure
from gui.components.base_popup import BasePopup
from gui.elements.button import Button
from gui.objects_map import names
2023-10-06 03:02:48 +00:00
class LeaveGroupPopup(BasePopup):
def __init__(self):
super().__init__()
self._leave_button = Button(names.leave_StatusButton)
2023-10-06 03:02:48 +00:00
@allure.step("Confirm leaving group")
def confirm_leaving(self):
self._leave_button.click()
self.wait_until_hidden()
2024-03-27 10:39:30 +00:00