Add E2E test for build history

Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
This commit is contained in:
FangyuanCheng 2018-11-19 18:22:46 +08:00
parent 9a46d6b3ac
commit e7b8fb8f04
2 changed files with 7 additions and 1 deletions

View File

@ -25,6 +25,10 @@ View Repo Scan Details
Wait Until Page Contains high
Wait Until Page Contains medium
Page Should Contain CVE
Sleep 2
Click Element xpath=${build_history_btn}
Sleep 1
Page Should Contain Element xpath=${build_history_data}
View Scan Error Log
Page Should Contain View Log

View File

@ -18,4 +18,6 @@ Documentation This resource provides any keywords related to the Harbor private
*** Variables ***
${first_repo_xpath} //clr-dg-row//clr-dg-cell[2]//a
${first_cve_xpath} //clr-dg-row[1]//clr-dg-cell//a
${view_log_xpath} //clr-dg-row[1]//clr-dg-cell[5]//a
${view_log_xpath} //clr-dg-row[1]//clr-dg-cell[5]//a
${build_history_btn} //button[contains(.,'Build History')]
${build_history_data} //clr-dg-row