Merge pull request #16703 from YangJiao0817/add-open-license-test-case

Add open license test case
This commit is contained in:
Yang Jiao 2022-04-15 17:20:07 +08:00 committed by GitHub
commit e6e748a3db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
@ -64,4 +65,16 @@ Test Case - Project Tab Routing
... harbor/projects/1/configs=//project-detail//app-project-config//hbr-project-policy-config
FOR ${key} IN @{routing.keys()}
Retry Double Keywords When Error Go To ${HARBOR_URL}/${key} Retry Wait Element ${routing['${key}']}
END
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