2023-10-06 03:02:48 +00:00
|
|
|
import allure
|
|
|
|
|
|
|
|
from gui.components.base_popup import BasePopup
|
2023-10-06 11:32:08 +00:00
|
|
|
from gui.elements.button import Button
|
2024-02-13 09:04:24 +00:00
|
|
|
from gui.objects_map import names
|
2023-10-06 03:02:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
class LeaveGroupPopup(BasePopup):
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
super().__init__()
|
2024-02-13 09:04:24 +00:00
|
|
|
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()
|