tst(tst_communitySettings): enhance settings screen coverage
This commit is contained in:
parent
ac6307c77c
commit
b27954904b
|
@ -68,6 +68,8 @@ class CommunitySettingsComponents(Enum):
|
|||
COMMUNITY_DESCRIPTION_TEXT = "communitySettings_CommunityDescription_Text"
|
||||
COMMUNITY_LETTER_IDENTICON = "communitySettings_Community_LetterIdenticon"
|
||||
MEMBERS_BUTTON = "communitySettings_Members_NavigationListItem"
|
||||
MINT_TOKENS_BUTTON = "communitySettingsView_NavigationListItem_Mint_Tokens"
|
||||
AIRDROPS_BUTTON = "communitySettingsView_NavigationListItem_Airdrops"
|
||||
PERMISSIONS_BUTTON = "communitySettings_Permissions_NavigationListItem"
|
||||
MEMBERS_TAB_MEMBERS_LISTVIEW = "communitySettings_MembersTab_Members_ListView"
|
||||
MEMBER_KICK_BUTTON = "communitySettings_MembersTab_Member_Kick_Button"
|
||||
|
@ -477,6 +479,12 @@ class StatusCommunityScreen:
|
|||
if option=="Permissions":
|
||||
title = get_obj(CommunitySettingsComponents.PERMISSIONS_BUTTON.value).title
|
||||
verify_text(option, str(title))
|
||||
elif option=="Members":
|
||||
title = get_obj(CommunitySettingsComponents.MEMBERS_BUTTON.value).title
|
||||
verify_text(option, str(title))
|
||||
elif option=="Mint Tokens":
|
||||
title = get_obj(CommunitySettingsComponents.MEMBERS_BUTTON.value).title
|
||||
verify_text(option, str(title))
|
||||
|
||||
def select_community_settings_option(self, option:str):
|
||||
if option=="Permissions":
|
||||
|
|
|
@ -26,6 +26,8 @@ community_InviteFriends_Popup_MessagePanel = {"container": statusDesktop_mainWin
|
|||
community_ProfilePopupInviteMessagePanel_MessageInput = {"container": community_InviteFriends_Popup_MessagePanel, "objectName": "CommunityProfilePopupInviteMessagePanel_MessageInput", "type": "TextEdit", "visible": True}
|
||||
community_InviteFriend_SendButton = {"container": statusDesktop_mainWindow_overlay, "objectName": "InviteFriendsToCommunityPopup_SendButton", "type": "StatusButton", "visible": True}
|
||||
communitySettings_Members_NavigationListItem = {"container": statusDesktop_mainWindow, "objectName": "CommunitySettingsView_NavigationListItem_Members", "type": "StatusNavigationListItem", "visible": True}
|
||||
communitySettingsView_NavigationListItem_Airdrops = {"container": statusDesktop_mainWindow, "objectName": "CommunitySettingsView_NavigationListItem_Airdrops", "type": "StatusNavigationListItem", "visible": True}
|
||||
communitySettingsView_NavigationListItem_Mint_Tokens = {"container": statusDesktop_mainWindow, "objectName": "CommunitySettingsView_NavigationListItem_Mint_Tokens", "type": "StatusNavigationListItem", "visible": True}
|
||||
communitySettings_Permissions_NavigationListItem = {"container": statusDesktop_mainWindow, "objectName": "CommunitySettingsView_NavigationListItem_Permissions", "type": "StatusNavigationListItem", "visible": True}
|
||||
communitySettings_MembersTab_Members_ListView = {"container": statusDesktop_mainWindow, "objectName": "CommunityMembersTabPanel_MembersListViews", "type": "ListView", "visible": True}
|
||||
communitySettings_MembersTab_Member_Kick_Button = {"container": communitySettings_MembersTab_Members_ListView, "objectName": "MemberListIten_KickButton", "type": "StatusButton", "visible": True}
|
||||
|
|
|
@ -8,4 +8,4 @@ from scripts.settings_names import *
|
|||
|
||||
from community_names import *
|
||||
from community_portal_names import *
|
||||
from search_names import *
|
||||
from search_names import *
|
|
@ -12,4 +12,8 @@ Background:
|
|||
|
||||
Scenario: Community permissions is an available option is Community Settings
|
||||
When "Manage Community" is clicked in the community sidebar
|
||||
Then "Permissions" should be an available option in Community Settings
|
||||
Then "<settings section>" should be an available option in Community Settings
|
||||
|Members|
|
||||
|Permissions|
|
||||
|Mint Tokens|
|
||||
|Airdrops|
|
Loading…
Reference in New Issue