fix: fresh scanner list when updating scanner

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
This commit is contained in:
Shengwen Yu 2024-04-25 20:17:53 +08:00
parent ec8d692fe6
commit 384d110b06
3 changed files with 3 additions and 1 deletions

View File

@ -51,3 +51,4 @@ ${scanner_password_input} //*[@id='scanner-password']
${scanner_token_input} //*[@id='scanner-token']
${scanner_apikey_input} //*[@id='scanner-apiKey']
${scanner_set_default_btn} //*[@id='set-default']
${scanner_list_refresh_btn} //span[@class='refresh-btn']//clr-icon[@role='none']

View File

@ -76,6 +76,7 @@ Resource Harbor-Pages/Job_Service_Dashboard_Elements.robot
Resource Harbor-Pages/SecurityHub.robot
Resource Harbor-Pages/SecurityHub_Elements.robot
Resource Harbor-Pages/Verify.robot
Resource Harbor-Pages/Vulnerability_Elements.robot
Resource Docker-Util.robot
Resource CNAB_Util.robot
Resource Helm-Util.robot

View File

@ -182,7 +182,7 @@ Test Case - External Scanner CRUD
Filter Scanner By Name scanner${d}
Filter Scanner By Endpoint ${SCANNER_ENDPOINT}
Retry Wait Element Count //clr-dg-row 1
Retry Wait Until Page Contains Element //clr-dg-row[.//span[text()='scanner${d}'] and .//clr-dg-cell[text()='${SCANNER_ENDPOINT}'] and .//span[text()='Healthy'] and .//clr-dg-cell[text()='None']]
Retry Double Keywords When Error Retry Element Click xpath=${scanner_list_refresh_btn} Retry Wait Until Page Contains Element //clr-dg-row[.//span[text()='scanner${d}'] and .//clr-dg-cell[text()='${SCANNER_ENDPOINT}'] and .//span[text()='Healthy'] and .//clr-dg-cell[text()='None']]
# Delete this scanner
Delete Scanner scanner${d}
Close Browser