Add open license test case

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
This commit is contained in:
Yang Jiao 2022-04-11 01:25:07 +00:00
parent 527508fca5
commit c1781bfb74
3 changed files with 20 additions and 1 deletions

View File

@ -43,3 +43,7 @@ Logout Harbor
Retry Link Click Log Out
Sleep 2
Wait Until Keyword Succeeds 5x 1 Retry Wait Until Page Contains Element ${sign_in_title_xpath}
View About
Retry Element Click ${head_admin_xpath}
Retry Link Click ${about_xpath}

View File

@ -26,3 +26,5 @@ ${change_password_confirm_btn_xpath} xpath=//password-setting/clr-modal//button
${user_profile_confirm_btn_xpath} xpath=//account-settings-modal/clr-modal//button[2]
${sign_in_title_xpath} xpath=//sign-in//form//*[@class='title']
${account_settings_comments_xpath} xpath=//*[@id='account_settings_comments']
${about_xpath} xpath=//clr-dropdown-menu//a[contains(.,'About')]
${license_xpath} xpath=//about-dialog//div//p//a[contains(.,'Open Source/Third Party License')]

View File

@ -44,6 +44,7 @@ Test Case - Main Menu Routing
FOR ${key} IN @{routing.keys()}
Retry Double Keywords When Error Go To ${HARBOR_URL}/${key} Retry Wait Element ${routing['${key}']}
END
Close Browser
Test Case - Project Tab Routing
[Tags] project_tab_routing
@ -65,3 +66,15 @@ Test Case - Project Tab Routing
FOR ${key} IN @{routing.keys()}
Retry Double Keywords When Error Go To ${HARBOR_URL}/${key} Retry Wait Element ${routing['${key}']}
END
Close Browser
Test Case - Open License Page
[Tags] license_page
Init Chrome Driver
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
View About
Retry Link Click ${license_xpath}
Sleep 3
Switch Window locator=NEW
Retry Wait Until Page Contains Apache License
Close Browser