Skip to content

Commit

Permalink
fix: fresh scanner list when updating scanner
Browse files Browse the repository at this point in the history
Signed-off-by: Shengwen Yu <[email protected]>
  • Loading branch information
Shengwen Yu committed Apr 25, 2024
1 parent 2af02f3 commit 8a6af77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/resources/Harbor-Pages/Vulnerability_Elements.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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']
1 change: 1 addition & 0 deletions tests/resources/Util.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/robot-cases/Group1-Nightly/Trivy.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a6af77

Please sign in to comment.