chore: add attempts to click Delete button and removed awaiting
This commit is contained in:
parent
87bcc83717
commit
a45de2c28e
|
@ -10,10 +10,17 @@ class DeletePopup(BasePopup):
|
|||
super().__init__()
|
||||
self._delete_button = Button('delete_StatusButton')
|
||||
|
||||
@allure.step("Delete entity")
|
||||
def delete(self):
|
||||
@allure.step("Delete channel")
|
||||
def delete(self, attempts: int = 2):
|
||||
try:
|
||||
self._delete_button.click()
|
||||
self.wait_until_hidden()
|
||||
except Exception as ex:
|
||||
if attempts:
|
||||
self.delete(attempts-1)
|
||||
else:
|
||||
raise ex
|
||||
|
||||
|
||||
|
||||
|
||||
class DeleteCategoryPopup(DeletePopup):
|
||||
|
|
Loading…
Reference in New Issue