Fix e2e test after project creation moved to system config (#5536)

Fix test project creation for e2e.
This commit is contained in:
Mia ZHOU 2018-08-07 10:32:23 +08:00 committed by Yan
parent 9bcf33212d
commit 5d76b28a5c
2 changed files with 5 additions and 5 deletions

View File

@ -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}

View File

@ -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"]