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