mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 16:48:30 +01:00
Update automation test case "Make Project Public/Private" (#6028)
Add "Wait Until" to ensure the "Save" button is clicked Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
05e5105c46
commit
b650bf0d04
@ -87,7 +87,9 @@ Make Project Private
|
||||
Sleep 1
|
||||
Checkbox Should Be Selected xpath=//input[@name='public']
|
||||
Click Element //clr-checkbox[@name='public']//label
|
||||
Wait Until Element Is Enabled //button[contains(.,'SAVE')]
|
||||
Click Element //button[contains(.,'SAVE')]
|
||||
Wait Until Page Contains Configuration has been successfully saved
|
||||
|
||||
Make Project Public
|
||||
[Arguments] ${projectname}
|
||||
@ -96,7 +98,9 @@ Make Project Public
|
||||
Click Element xpath=//project-detail//a[contains(.,'Configuration')]
|
||||
Checkbox Should Not Be Selected xpath=//input[@name='public']
|
||||
Click Element //clr-checkbox[@name='public']//label
|
||||
Wait Until Element Is Enabled //button[contains(.,'SAVE')]
|
||||
Click Element //button[contains(.,'SAVE')]
|
||||
Wait Until Page Contains Configuration has been successfully saved
|
||||
|
||||
Delete Repo
|
||||
[Arguments] ${projectname}
|
||||
|
Loading…
Reference in New Issue
Block a user