From 70d82ee12447fef0eae1c4383c1d66865a483530 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 --- test/e2e/gui/objects_map/communities_names.py | 2 +- test/e2e/gui/screens/community_settings.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/gui/objects_map/communities_names.py b/test/e2e/gui/objects_map/communities_names.py index 6f6abc3b8e..2cf07371bd 100644 --- a/test/e2e/gui/objects_map/communities_names.py +++ b/test/e2e/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/test/e2e/gui/screens/community_settings.py b/test/e2e/gui/screens/community_settings.py index 2a91fa7dd2..81b8d0996c 100644 --- a/test/e2e/gui/screens/community_settings.py +++ b/test/e2e/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')