mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-29 21:54:13 +01:00
Add open license test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
This commit is contained in:
parent
527508fca5
commit
c1781bfb74
@ -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}
|
@ -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')]
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user