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()
|
2024-10-10 10:26:23 +00:00
|
|
|
self.wait_until_hidden()
|
2024-03-27 10:39:30 +00:00
|
|
|
|