mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-27 02:58:05 +01:00
Merge pull request #16703 from YangJiao0817/add-open-license-test-case
Add open license test case
This commit is contained in:
commit
e6e748a3db
@ -43,3 +43,7 @@ Logout Harbor
|
|||||||
Retry Link Click Log Out
|
Retry Link Click Log Out
|
||||||
Sleep 2
|
Sleep 2
|
||||||
Wait Until Keyword Succeeds 5x 1 Retry Wait Until Page Contains Element ${sign_in_title_xpath}
|
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}
|
@ -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]
|
${user_profile_confirm_btn_xpath} xpath=//account-settings-modal/clr-modal//button[2]
|
||||||
${sign_in_title_xpath} xpath=//sign-in//form//*[@class='title']
|
${sign_in_title_xpath} xpath=//sign-in//form//*[@class='title']
|
||||||
${account_settings_comments_xpath} xpath=//*[@id='account_settings_comments']
|
${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')]
|
@ -44,6 +44,7 @@ Test Case - Main Menu Routing
|
|||||||
FOR ${key} IN @{routing.keys()}
|
FOR ${key} IN @{routing.keys()}
|
||||||
Retry Double Keywords When Error Go To ${HARBOR_URL}/${key} Retry Wait Element ${routing['${key}']}
|
Retry Double Keywords When Error Go To ${HARBOR_URL}/${key} Retry Wait Element ${routing['${key}']}
|
||||||
END
|
END
|
||||||
|
Close Browser
|
||||||
|
|
||||||
Test Case - Project Tab Routing
|
Test Case - Project Tab Routing
|
||||||
[Tags] 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
|
... harbor/projects/1/configs=//project-detail//app-project-config//hbr-project-policy-config
|
||||||
FOR ${key} IN @{routing.keys()}
|
FOR ${key} IN @{routing.keys()}
|
||||||
Retry Double Keywords When Error Go To ${HARBOR_URL}/${key} Retry Wait Element ${routing['${key}']}
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user