mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
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:
parent
7bccb7b12a
commit
7d6f8f94c4
@ -31,8 +31,10 @@ Create An New Project
|
|||||||
Run Keyword If '${public}' == 'true' Click Element xpath=${project_public_xpath}
|
Run Keyword If '${public}' == 'true' Click Element xpath=${project_public_xpath}
|
||||||
Click Element xpath=//button[contains(.,'OK')]
|
Click Element xpath=//button[contains(.,'OK')]
|
||||||
Sleep 4
|
Sleep 4
|
||||||
Wait Until Page Contains ${projectname}
|
${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}
|
||||||
Wait Until Page Contains Project Admin
|
Log ${output}
|
||||||
|
Should Be Equal As Integers ${rc} 0
|
||||||
|
Should Contain ${output} ${projectname}
|
||||||
|
|
||||||
Create An New Project With New User
|
Create An New Project With New User
|
||||||
[Arguments] ${url} ${username} ${email} ${realname} ${newPassword} ${comment} ${projectname} ${public}
|
[Arguments] ${url} ${username} ${email} ${realname} ${newPassword} ${comment} ${projectname} ${public}
|
||||||
|
Loading…
Reference in New Issue
Block a user