test(community): Fix community categories tests

This commit is contained in:
MishkaRogachev 2022-08-26 14:21:26 +04:00 committed by Mikhail Rogachev
parent 8de1e42a0f
commit 2d873db153
2 changed files with 6 additions and 5 deletions

View File

@ -126,8 +126,8 @@ class StatusCommunityScreen:
def _open_category_edit_popup(self, category):
# For some reason it clicks on a first channel in category instead of category
click_obj(category.parent)
right_click_obj(category.parent)
click_obj(category.chatListCategory.statusChatListCategoryItem)
right_click_obj(category.chatListCategory.statusChatListCategoryItem)
click_obj_by_name(CommunityScreenComponents.COMMUNITY_EDIT_CATEGORY_MENU_ITEM.value)
def verify_community_name(self, communityName: str):
@ -192,8 +192,9 @@ class StatusCommunityScreen:
verify(loaded, "Finding category: " + community_category_name)
# For some reason it clicks on a first channel in category instead of category
click_obj(category.parent)
right_click_obj(category.parent)
click_obj(category.chatListCategory.statusChatListCategoryItem)
right_click_obj(category.chatListCategory.statusChatListCategoryItem)
click_obj_by_name(CommunityScreenComponents.COMMUNITY_DELETE_CATEGORY_MENU_ITEM.value)
click_obj_by_name(CommunityScreenComponents.COMMUNITY_CONFIRM_DELETE_CATEGORY_BUTTON.value)

@ -1 +1 @@
Subproject commit 4d73c25c7adf300fcafa0aaed72e515895ee492f
Subproject commit 4d9cec541f2a1832b72bad3e599a3fe977900820