-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/master' into TEN-1366_Revise_Replication-sim…
…plify
- Loading branch information
Showing
3 changed files
with
134 additions
and
14 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,11 +1,31 @@ | ||
|
||
|
||
def smb_acl_empty_entry_who() -> str: | ||
""" | ||
This function returns the text for the first empty who field in the SMB ACL panel | ||
:return: xpath string for the first empty who field in the SMB ACL panel | ||
""" | ||
return '(//*[contains(@class, "select-placeholder")]/ancestor::ix-select//*[@data-test="select-ae-who"])[1]' | ||
|
||
|
||
def smb_acl_select_field(entry_type: str, field_type: str) -> str: | ||
""" | ||
This function returns the text for the given share ACL select field | ||
:param entry_type: type of the entry. [user/group] | ||
:param field_type: type of the field. [perm/type] | ||
:return: xpath string for given share ACL select field | ||
""" | ||
return f'//*[contains(text(),"{entry_type}")]/ancestor::ix-list-item//*[@data-test="select-ae-{field_type}"]' | ||
|
||
|
||
def smb_share_options(name: str) -> str: | ||
""" | ||
This function sets the text for the given share name | ||
This function returns the text for the given share name options button | ||
:param name: name of the given share | ||
:return: xpath string for given share name | ||
:return: xpath string for given share name options button | ||
""" | ||
return f'//*[@data-test="row-{name}"]//*[@data-test="button-samba-options"]' | ||
|