Change create project verify method (#5184)

Update create project keyword to avoid created project on the second page caused verify fail
This commit is contained in:
sigsbee 2018-06-27 11:27:03 +08:00 committed by GitHub
parent 7bccb7b12a
commit 7d6f8f94c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,8 +31,10 @@ Create An New Project
Run Keyword If '${public}' == 'true' Click Element xpath=${project_public_xpath}
Click Element xpath=//button[contains(.,'OK')]
Sleep 4
Wait Until Page Contains ${projectname}
Wait Until Page Contains Project Admin
${rc} ${output}= Run And Return Rc And Output curl -u %{HARBOR_ADMIN}:%{HARBOR_PASSWORD} -k -X GET --header 'Accept: application/json' ${HARBOR_URL}/api/projects?name=${projectname}
Log ${output}
Should Be Equal As Integers ${rc} 0
Should Contain ${output} ${projectname}
Create An New Project With New User
[Arguments] ${url} ${username} ${email} ${realname} ${newPassword} ${comment} ${projectname} ${public}