mirror of https://github.com/goharbor/harbor.git
update xpath for all
Signed-off-by: stonezdj <stonezdj@gmail.com>
This commit is contained in:
parent
4a1de5164c
commit
c7a8097448
|
@ -245,7 +245,7 @@ Create New Labels
|
||||||
|
|
||||||
Update A Label
|
Update A Label
|
||||||
[Arguments] ${labelname}
|
[Arguments] ${labelname}
|
||||||
Retry Element Click xpath=//clr-dg-row[contains(.,'${labelname}')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')]
|
Retry Element Click xpath=//clr-dg-row//clr-dg-cell[contains(.,'${labelname}')]/../../..//clr-checkbox-wrapper/label[contains(@class, 'clr-control-label')]
|
||||||
Sleep 1
|
Sleep 1
|
||||||
Retry Element Click xpath=//button[contains(.,'Edit')]
|
Retry Element Click xpath=//button[contains(.,'Edit')]
|
||||||
Sleep 1
|
Sleep 1
|
||||||
|
@ -256,7 +256,7 @@ Update A Label
|
||||||
|
|
||||||
Delete A Label
|
Delete A Label
|
||||||
[Arguments] ${labelname}
|
[Arguments] ${labelname}
|
||||||
Retry Element Click xpath=//clr-dg-row[contains(.,'${labelname}')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')]
|
Retry Element Click xpath=//clr-dg-row//clr-dg-cell[contains(.,'${labelname}')]/../../..//clr-checkbox-wrapper/label[contains(@class, 'clr-control-label')]
|
||||||
Sleep 1
|
Sleep 1
|
||||||
Retry Element Click xpath=//button[contains(.,'Delete')]
|
Retry Element Click xpath=//button[contains(.,'Delete')]
|
||||||
Sleep 3
|
Sleep 3
|
||||||
|
|
|
@ -30,7 +30,7 @@ ${OIDC_USERNAME} test1
|
||||||
${generate_secret_btn} //*[@id='generate-cli-btn']
|
${generate_secret_btn} //*[@id='generate-cli-btn']
|
||||||
${more_btn} //*[@id='hidden-generate-cli']
|
${more_btn} //*[@id='hidden-generate-cli']
|
||||||
${reset_secret_btn} //*[@id='reset-cli-btn']
|
${reset_secret_btn} //*[@id='reset-cli-btn']
|
||||||
${user_test7_checkbox} //clr-dg-row[contains(.,'test7')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')]
|
${user_test7_checkbox} //clr-dg-row//clr-dg-cell[contains(.,'test7')]/../../..//clr-checkbox-wrapper/label[contains(@class, 'clr-control-label')]
|
||||||
${member_action_btn} //*[@id='member-action']
|
${member_action_btn} //*[@id='member-action']
|
||||||
${user_actions_del_btn} //*[@id='deleteUser']
|
${user_actions_del_btn} //*[@id='deleteUser']
|
||||||
${user_test7_row} //clr-dg-row[contains(.,'test7')]
|
${user_test7_row} //clr-dg-row[contains(.,'test7')]
|
||||||
|
|
|
@ -40,7 +40,7 @@ Add A New Tag
|
||||||
|
|
||||||
Delete A Tag
|
Delete A Tag
|
||||||
[Arguments] ${tag}
|
[Arguments] ${tag}
|
||||||
Retry Element Click xpath=//clr-dg-row[contains(.,'${tag}')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')]
|
Retry Element Click xpath=//clr-dg-row//clr-dg-cell[contains(.,'${tag}')]/../../..//clr-checkbox-wrapper/label[contains(@class, 'clr-control-label')]
|
||||||
Retry Double Keywords When Error Retry Element Click ${delete_tag_button} Retry Wait Until Page Contains Element ${dialog_delete_button}
|
Retry Double Keywords When Error Retry Element Click ${delete_tag_button} Retry Wait Until Page Contains Element ${dialog_delete_button}
|
||||||
Retry Double Keywords When Error Retry Element Click ${dialog_delete_button} Should Not Contain Tag ${tag}
|
Retry Double Keywords When Error Retry Element Click ${dialog_delete_button} Should Not Contain Tag ${tag}
|
||||||
|
|
||||||
|
|
|
@ -416,7 +416,7 @@ Should be Accessory deleted
|
||||||
Export CVEs
|
Export CVEs
|
||||||
[Arguments] ${project} ${repositories} ${tags} ${labels} ${cve_ids}
|
[Arguments] ${project} ${repositories} ${tags} ${labels} ${cve_ids}
|
||||||
Filter Project ${project}
|
Filter Project ${project}
|
||||||
Retry Element Click //clr-dg-row[contains(.,'${project}')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')]
|
Retry Element Click //clr-dg-row//clr-dg-cell[contains(.,'${project}')]/../../..//clr-checkbox-wrapper/label[contains(@class, 'clr-control-label')]
|
||||||
Retry Element Click ${project_action_xpath}
|
Retry Element Click ${project_action_xpath}
|
||||||
Retry Button Click ${export_cve_btn}
|
Retry Button Click ${export_cve_btn}
|
||||||
Retry Text Input ${export_cve_filter_repo_input} ${repositories}
|
Retry Text Input ${export_cve_filter_repo_input} ${repositories}
|
||||||
|
|
Loading…
Reference in New Issue