From c5591cba46df54a8b1f176ef4bc61391925bcb11 Mon Sep 17 00:00:00 2001 From: Yang Jiao Date: Fri, 15 Apr 2022 08:44:27 +0000 Subject: [PATCH] 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 --- tests/resources/Harbor-Pages/Vulnerability.robot | 5 +++++ tests/robot-cases/Group1-Nightly/Routing.robot | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/tests/resources/Harbor-Pages/Vulnerability.robot b/tests/resources/Harbor-Pages/Vulnerability.robot index 398f800ad..f7b34c498 100644 --- a/tests/resources/Harbor-Pages/Vulnerability.robot +++ b/tests/resources/Harbor-Pages/Vulnerability.robot @@ -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')] \ No newline at end of file diff --git a/tests/robot-cases/Group1-Nightly/Routing.robot b/tests/robot-cases/Group1-Nightly/Routing.robot index 42e1ee44a..78c2454a1 100644 --- a/tests/robot-cases/Group1-Nightly/Routing.robot +++ b/tests/robot-cases/Group1-Nightly/Routing.robot @@ -106,4 +106,14 @@ Test Case - Open CVE Details Page Sleep 3 Switch Window locator=NEW Retry Wait Element //h1[contains(.,'${cve}')] - Close Browser \ No newline at end of file + 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