-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6344 from emilghittasv/playwright-expand-group-co…
…verage Playwright expand coverage to group pages
- Loading branch information
Showing
12 changed files
with
747 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,62 @@ | ||
class UserGroupMessages: | ||
def get_user_added_success_message(self, username: str) -> str: | ||
DELETE_AVATAR_PAGE_INFO = ("You are about to permanently delete the avatar. " | ||
"This cannot be undone! You can always upload another avatar to " | ||
"replace the current one.") | ||
GROUP_INFORMATION_UPDATE_NOTIFICATION = "Group information updated successfully!" | ||
|
||
def get_user_added_success_message(username: str) -> str: | ||
"""Get the user added success message. | ||
Args: | ||
username (str): The username of the user added to the group | ||
""" | ||
return f"{username} added to the group successfully!" | ||
|
||
def get_user_removed_success_message(username: str) -> str: | ||
"""Get the user removed success message. | ||
Args: | ||
username (str): The username of the user removed from the group | ||
""" | ||
return f"{username} removed from the group successfully!" | ||
|
||
def get_change_avatar_page_header(user_group: str) -> str: | ||
"""Get the change avatar page header. | ||
Args: | ||
user_group (str): The group name. | ||
""" | ||
return f"Change {user_group} group avatar" | ||
|
||
def get_change_uploaded_avatar_page_header(user_group: str) -> str: | ||
"""Get the change uploaded avatar page header. | ||
Args: | ||
user_group (str): The group name. | ||
""" | ||
return f"Change {user_group} group avatar" | ||
|
||
def get_delete_uploaded_avatar_page_header(user_group: str) -> str: | ||
"""Get the delete uploaded avatar page header. | ||
Args: | ||
user_group (str): The group name. | ||
""" | ||
return f"Are you sure you want to delete the {user_group} group avatar?" | ||
|
||
def get_delete_user_header(username: str, group: str) -> str: | ||
"""Get the delete user page header. | ||
Args: | ||
username (str): The username of the user to delete. | ||
group (str): The group name. | ||
""" | ||
return f"Are you sure you want to remove {username} from {group}?" | ||
|
||
def get_edit_profile_information_page_header(group_name: str) -> str: | ||
"""Get the edit profile information page header. | ||
Args: | ||
group_name (str): The group name. | ||
""" | ||
return f"Edit {group_name} profile information" |
Oops, something went wrong.