mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-17 04:11:24 +01:00
Merge pull request #3471 from sigsbee/deleteproj
Add delete project auto case
This commit is contained in:
commit
472ffb95b0
@ -98,6 +98,27 @@ Delete Repo
|
||||
Click Element xpath=//clr-modal//div[@class="modal-dialog"]//button[2]
|
||||
Sleep 2
|
||||
|
||||
Delete Project
|
||||
[Arguments] ${projname}
|
||||
Sleep 1
|
||||
Click Element //list-project//clr-dg-row-master[contains(.,'${projname}')]//clr-dg-action-overflow
|
||||
Click Element //list-project//clr-dg-row-master[contains(.,'${projname}')]//clr-dg-action-overflow//button[contains(.,'Delete')]
|
||||
#click delete button to confirm
|
||||
Sleep 1
|
||||
Click Element //confiramtion-dialog//button[contains(.,'DELETE')]
|
||||
|
||||
Project Should Not Be Deleted
|
||||
[Arguments] ${projname}
|
||||
Delete Project ${projname}
|
||||
Sleep 1
|
||||
Page Should Contain Element //clr-alert//span[contains(.,'cannot')]
|
||||
|
||||
Project Should Be Deleted
|
||||
[Arguments] ${projname}
|
||||
Delete Project ${projname}
|
||||
Sleep 2
|
||||
Page Should Not Contain ${projname}
|
||||
|
||||
Advanced Search Should Display
|
||||
Page Should Contain Element xpath=//audit-log//div[@class="flex-xs-middle"]/button
|
||||
|
||||
|
@ -253,6 +253,18 @@ Test Case-Manage Project Member
|
||||
|
||||
Close Browser
|
||||
|
||||
Test Case - Delete A Project
|
||||
Init Chrome Driver
|
||||
${d}= Get Current Date result_format=%m%s
|
||||
Create An New Project With New User ${HARBOR_URL} tester${d} tester${d}@vmware.com tester${d} Test1@34 harobr project${d} false
|
||||
Push Image ${ip} tester${d} Test1@34 project${d} hello-world
|
||||
Project Should Not Be Deleted project${d}
|
||||
Go Into Project project${d}
|
||||
Delete Repo project${d}
|
||||
Back To projects
|
||||
Project Should Be Deleted project${d}
|
||||
Close Browser
|
||||
|
||||
Test Case - Assign Sys Admin
|
||||
Init Chrome Driver
|
||||
${d}= Get Current Date result_format=%m%s
|
||||
|
Loading…
Reference in New Issue
Block a user