mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-22 06:41:36 +01:00
Fix e2e test after project creation moved to system config (#5536)
Fix test project creation for e2e.
This commit is contained in:
parent
9bcf33212d
commit
5d76b28a5c
@ -93,7 +93,7 @@ Ldap Verify Cert Checkbox Should Be Disabled
|
||||
Set Pro Create Admin Only
|
||||
#set limit to admin only
|
||||
Sleep 2
|
||||
Click Element xpath=${configuration_xpath}
|
||||
Click Element xpath=${system_config_xpath}
|
||||
Sleep 1
|
||||
Click Element xpath=//select[@id="proCreation"]
|
||||
Click Element xpath=//select[@id="proCreation"]//option[@value="adminonly"]
|
||||
@ -103,7 +103,7 @@ Set Pro Create Admin Only
|
||||
|
||||
Set Pro Create Every One
|
||||
#set limit to Every One
|
||||
Click Element xpath=${configuration_xpath}
|
||||
Click Element xpath=${system_config_xpath}
|
||||
Sleep 1
|
||||
Click Element xpath=//select[@id="proCreation"]
|
||||
Click Element xpath=//select[@id="proCreation"]//option[@value="everyone"]
|
||||
@ -147,8 +147,7 @@ Project Creation Should Not Display
|
||||
Switch To System Settings
|
||||
Sleep 1
|
||||
Click Element xpath=${configuration_xpath}
|
||||
Click Element xpath=//*[@id="config-system"]
|
||||
|
||||
Click Element xpath=${system_config_xpath}
|
||||
Modify Token Expiration
|
||||
[Arguments] ${minutes}
|
||||
Input Text xpath=//*[@id="tokenExpiration"] ${minutes}
|
||||
|
@ -20,4 +20,5 @@ ${project_create_xpath} //clr-dg-action-bar//button[contains(.,'New')]
|
||||
${self_reg_xpath} //input[@id="clr-checkbox-selfReg"]
|
||||
${test_ldap_xpath} /html/body/harbor-app/harbor-shell/clr-main-container/div/div/config/div/div/div/button[3]
|
||||
${config_save_button_xpath} //config//div/button[contains(.,'SAVE')]
|
||||
${configuration_xpath} //clr-vertical-nav-group-children/a[contains(.,'Configuration')]
|
||||
${configuration_xpath} //clr-vertical-nav-group-children/a[contains(.,'Configuration')]
|
||||
${system_config_xpath} //*[@id="config-system"]
|
Loading…
Reference in New Issue
Block a user