chore: fix for permissions test

This commit is contained in:
Valentina Novgorodtceva 2024-04-08 13:11:19 +07:00 committed by Anastasiya
parent 9df47c99ab
commit bc6d7cb3ea
2 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ inputValue_StyledTextField = {"container": statusDesktop_mainWindow_overlay, "ec
o_TokenItem = {"container": statusDesktop_mainWindow_overlay, "index": 0, "type": "TokenItem", "unnamed": 1, "visible": True}
add_StatusButton = {"checkable": False, "container": statusDesktop_mainWindow_overlay, "type": "StatusButton", "unnamed": 1, "visible": True}
customPermissionListItem = {"container": statusDesktop_mainWindow_overlay, "objectName": "becomeAdmin", "type": "CustomPermissionListItem", "visible": True}
communityItem_CommunityListItem = {"container": statusDesktop_mainWindow_overlay, "id": "communityItem", "type": "CommunityListItem", "unnamed": 1, "visible": True}
checkBox_StatusCheckBox = {"checkable": True, "container": statusDesktop_mainWindow_overlay, "id": "checkBox", "type": "StatusCheckBox", "unnamed": 1, "visible": True}
editPermissionView_switchItem_StatusSwitch = {"checkable": True, "container": mainWindow_editPermissionView_EditPermissionView, "objectName": "switchItem", "type": "StatusSwitch", "visible": True}
editPermissionView_Create_permission_StatusButton = {"checkable": False, "container": mainWindow_editPermissionView_EditPermissionView, "text": "Create permission", "type": "StatusButton", "unnamed": 1, "visible": True}
mainWindow_PermissionsView = {"container": statusDesktop_mainWindow, "type": "PermissionsView", "unnamed": 1, "visible": True}

View File

@ -469,7 +469,7 @@ class PermissionsSettingsView(QObject):
self._who_holds_amount_field = TextEdit(communities_names.inputValue_StyledTextField)
self._asset_item = QObject(communities_names.o_TokenItem)
self._is_allowed_to_option_button = Button(communities_names.customPermissionListItem)
self._in_general_button = Button(communities_names.communityItem_CommunityListItem)
self._in_general_checkbox = Button(communities_names.checkBox_StatusCheckBox)
self._hide_permission_checkbox = CheckBox(communities_names.editPermissionView_switchItem_StatusSwitch)
self._create_permission_button = Button(communities_names.editPermissionView_Create_permission_StatusButton)
self._add_button = Button(communities_names.add_StatusButton)
@ -550,7 +550,7 @@ class PermissionsSettingsView(QObject):
def set_in(self, in_general):
if in_general == '#general':
self.open_in_context_menu()
self._in_general_button.wait_until_appears().click()
self._in_general_checkbox.wait_until_appears().click()
self.click_add_button()
@allure.step('Click add button')