mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 12:15:20 +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
|
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
|
||||||
@ -65,3 +66,15 @@ Test Case - Project Tab 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 - 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