@@ -448,7 +448,7 @@ def __init__(self):
448448 self ._who_holds_amount_field = TextEdit (communities_names .inputValue_StyledTextField )
449449 self ._asset_item = QObject (communities_names .o_TokenItem )
450450 self ._is_allowed_to_option_button = Button (communities_names .customPermissionListItem )
451- self ._in_channel_button = Button (communities_names .communityItem_CommunityListItem )
451+ self ._in_general_button = Button (communities_names .communityItem_CommunityListItem )
452452 self ._hide_permission_checkbox = CheckBox (communities_names .editPermissionView_switchItem_StatusSwitch )
453453 self ._create_permission_button = Button (communities_names .editPermissionView_Create_permission_StatusButton )
454454 self ._add_button = Button (communities_names .add_StatusButton )
@@ -522,15 +522,15 @@ def set_who_holds_asset_and_amount(self, asset: str, amount: str):
522522 def set_is_allowed_to (self , name ):
523523 self .open_is_allowed_to_context_menu ()
524524 self ._is_allowed_to_option_button .real_name ['objectName' ] = name
525- self ._is_allowed_to_option_button .click ()
525+ self ._is_allowed_to_option_button .wait_until_appears (). click ()
526526 self .click_add_button ()
527527
528528 @allure .step ('Choose channel from In context menu' )
529- def set_in (self , channel ):
530- self . open_in_context_menu ()
531- self . _in_channel_button . real_name [ 'objectName' ] = 'communityListItem_' + channel
532- self ._in_channel_button .click ()
533- self .click_add_button ()
529+ def set_in (self , in_general ):
530+ if in_general == '#general' :
531+ self . open_in_context_menu ()
532+ self ._in_general_button . wait_until_appears () .click ()
533+ self .click_add_button ()
534534
535535 @allure .step ('Click add button' )
536536 def click_add_button (self , attempt : int = 2 ):
0 commit comments