Skip to content

Commit

Permalink
Draft: fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
mprakhov committed Jan 16, 2023
1 parent b26565e commit b7c1250
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions test/ui-test/src/screens/StatusCommunityScreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ def verify_category_contains_channels(self, community_category_name, community_c

def open_edit_community_by_community_header(self):
click_obj_by_name(CommunityScreenComponents.COMMUNITY_HEADER_BUTTON.value)
time.sleep(0.5) # wait for UI to load
click_obj_by_name(CommunitySettingsComponents.EDIT_COMMUNITY_BUTTON.value)

def change_community_name(self, new_community_name: str):
Expand All @@ -265,7 +264,6 @@ def change_community_color(self, new_community_color: str):

def save_community_changes(self):
click_obj_by_name(CommunitySettingsComponents.SAVE_BUTTON.value)
time.sleep(0.5)

def edit_community(self, new_community_name: str, new_community_description: str, new_community_color: str):
self.open_edit_community_by_community_header()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@

# Community Edit:
communitySettings_EditCommunity_ScrollView = {"container": statusDesktop_mainWindow, "objectName": "communityEditPanelScrollView", "type": "StatusScrollView", "visible": True}
communitySettings_EditCommunity_Name_Input = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityNameInput", "type": "TextEdit"}
communitySettings_EditCommunity_Description_Input = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityDescriptionInput", "type": "TextEdit"}
communitySettings_EditCommunity_Name_Input = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityNameInput", "type": "TextEdit", "visible": True}
communitySettings_EditCommunity_Description_Input = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityDescriptionInput", "type": "TextEdit", "visible": True}
communitySettings_EditCommunity_ColorPicker_Button = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityColorPicker", "type": "CommunityColorPicker", "visible": True}

# Community color popup:
communitySettings_ColorPanel_HexColor_Input = {"container": statusDesktop_mainWindow_overlay, "objectName": "communityColorPanelHexInput", "type": "TextEdit"}
communitySettings_ColorPanel_HexColor_Input = {"container": statusDesktop_mainWindow_overlay, "objectName": "communityColorPanelHexInput", "type": "TextEdit", "visible": True}
communitySettings_SaveColor_Button = {"container": statusDesktop_mainWindow_overlay, "objectName": "communityColorPanelSelectColorButton", "type": "StatusButton", "visible": True}
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ Feature: Status Desktop community
When the admin deletes category named "test-category"
Then the category named "test-category" is missing

@mayfail
Scenario Outline: The admin edits a community name, description and color separately
When the admin changes the community name to "<new_community_name>"
Then the community overview name is "<new_community_name>"
Expand All @@ -98,7 +97,6 @@ Feature: Status Desktop community
| new_community_name | new_community_description | new_community_color |
| myCommunityNamedChanged | Cool new description 123 | #ff0000 |

@mayfail
Scenario Outline: The admin edits a community name, description and color
When the admin renames the community to "<new_community_name>" and description to "<new_community_description>" and color to "<new_community_color>"
Then the community overview name is "<new_community_name>"
Expand Down

0 comments on commit b7c1250

Please sign in to comment.