From bc6d7cb3eaff2bd45381289d3568c5f95ee2973f Mon Sep 17 00:00:00 2001 From: Valentina Novgorodtceva Date: Mon, 8 Apr 2024 13:11:19 +0700 Subject: [PATCH] chore: fix for permissions test --- gui/objects_map/communities_names.py | 2 +- gui/screens/community_settings.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/objects_map/communities_names.py b/gui/objects_map/communities_names.py index 6f6abc3..2cf0737 100644 --- a/gui/objects_map/communities_names.py +++ b/gui/objects_map/communities_names.py @@ -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} diff --git a/gui/screens/community_settings.py b/gui/screens/community_settings.py index 2a91fa7..81b8d09 100644 --- a/gui/screens/community_settings.py +++ b/gui/screens/community_settings.py @@ -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')