Add open image scanners documentation page test case

Add a test case for opening the Image Scanners Documentation Page to ensure this function is correct

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
This commit is contained in:
Yang Jiao 2022-04-15 08:44:27 +00:00
parent 1a981cb4ad
commit c5591cba46
2 changed files with 16 additions and 1 deletions

View File

@ -119,3 +119,8 @@ Check Scan All Artifact Job Status Is Stopped
Wait Until Element Is Visible ${stopped_icon}
${stopped_total}= Get Text ${stopped_icon}
Should Be True ${stopped_total} > 0
Open Image Scanners Documentation
Switch To Scanners Page
Retry Element Click //clr-signpost//cds-icon
Retry Link Click //clr-signpost-content//a[contains(.,'view documentation')]

View File

@ -106,4 +106,14 @@ Test Case - Open CVE Details Page
Sleep 3
Switch Window locator=NEW
Retry Wait Element //h1[contains(.,'${cve}')]
Close Browser
Close Browser
Test Case - Open Image Scanners Documentation Page
[Tags] image_scanners_documentation_page
Init Chrome Driver
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
Open Image Scanners Documentation
Sleep 3
Switch Window locator=NEW
Retry Wait Until Page Contains Vulnerability Scanning with Pluggable Scanners
Close Browser