chore: fix reference in permission test

This commit is contained in:
Anastasiya Semenkevich 2024-02-28 15:48:42 +03:00 committed by Anastasiya
parent da7f01eec2
commit 99716937f4
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ import allure
from gui.elements.button import Button from gui.elements.button import Button
from gui.elements.object import QObject from gui.elements.object import QObject
from gui.objects_map import names from gui.objects_map import names, communities_names
class ChangesDetectedToastMessage(QObject): class ChangesDetectedToastMessage(QObject):
@ -21,8 +21,8 @@ class ChangesDetectedToastMessage(QObject):
class PermissionsChangesDetectedToastMessage(QObject): class PermissionsChangesDetectedToastMessage(QObject):
def __init__(self): def __init__(self):
super().__init__(names.editPermissionView_settingsDirtyToastMessage_SettingsDirtyToastMessage) super().__init__(communities_names.editPermissionView_settingsDirtyToastMessage_SettingsDirtyToastMessage)
self._update_permission_button = Button(names.editPermissionView_Save_changes_StatusButton) self._update_permission_button = Button(communities_names.editPermissionView_Save_changes_StatusButton)
@allure.step('Update permission') @allure.step('Update permission')
def update_permission(self): def update_permission(self):

View File

@ -33,7 +33,7 @@ pytestmark = marks
pytest.param(True, 'Ether', 'Dai Stablecoin', '10', 'viewOnly', '#general', '10 ETH', '10 DAI', 'View only'), pytest.param(True, 'Ether', 'Dai Stablecoin', '10', 'viewOnly', '#general', '10 ETH', '10 DAI', 'View only'),
pytest.param(False, False, False, False, 'becomeAdmin', False, False, False, 'Become an admin') pytest.param(False, False, False, False, 'becomeAdmin', False, False, False, 'Become an admin')
]) ])
@pytest.mark.xfail(reason='https://github.com/status-im/status-desktop/issues/13621') #@pytest.mark.xfail(reason='https://github.com/status-im/status-desktop/issues/13621')
def test_add_edit_and_remove_permissions(main_screen: MainWindow, params, checkbox_state: bool, first_asset, def test_add_edit_and_remove_permissions(main_screen: MainWindow, params, checkbox_state: bool, first_asset,
second_asset, amount, allowed_to: str, in_channel, asset_title, second_asset, amount, allowed_to: str, in_channel, asset_title,
second_asset_title, allowed_to_title: str): second_asset_title, allowed_to_title: str):