mirror of
https://github.com/goharbor/harbor
synced 2025-04-20 16:16:00 +00:00
Fix failed auto test case to suit new UI (#4188)
This commit is contained in:
parent
f85761021d
commit
eb98936845
|
@ -75,13 +75,13 @@ Change Project Member Role
|
||||||
User Can Change Role
|
User Can Change Role
|
||||||
[arguments] ${username}
|
[arguments] ${username}
|
||||||
Click Element xpath=//clr-dg-row[contains(.,'${username}')]//input/../label
|
Click Element xpath=//clr-dg-row[contains(.,'${username}')]//input/../label
|
||||||
Click Element xpath=//button[@class='btn dropdown-toggle']
|
Click Element xpath=//clr-dropdown[@id='member-action']
|
||||||
Page Should Not Contain Element xpath=//button[@disabled='' and contains(.,'Admin')]
|
Page Should Not Contain Element xpath=//button[@disabled='' and contains(.,'Admin')]
|
||||||
|
|
||||||
User Can Not Change Role
|
User Can Not Change Role
|
||||||
[arguments] ${username}
|
[arguments] ${username}
|
||||||
Click Element xpath=//clr-dg-row[contains(.,'${username}')]//input/../label
|
Click Element xpath=//clr-dg-row[contains(.,'${username}')]//input/../label
|
||||||
Click Element xpath=//button[@class='btn dropdown-toggle']
|
Click Element xpath=//clr-dropdown[@id='member-action']
|
||||||
Page Should Contain Element xpath=//button[@disabled='' and contains(.,'Admin')]
|
Page Should Contain Element xpath=//button[@disabled='' and contains(.,'Admin')]
|
||||||
|
|
||||||
#this keyworkd seems will not use any more, will delete in the future
|
#this keyworkd seems will not use any more, will delete in the future
|
||||||
|
|
|
@ -52,6 +52,16 @@ Multi-delete Object
|
||||||
Click Element //clr-modal//button[contains(.,'DELETE')]
|
Click Element //clr-modal//button[contains(.,'DELETE')]
|
||||||
Sleep 3
|
Sleep 3
|
||||||
|
|
||||||
|
Multi-delete Member
|
||||||
|
[Arguments] @{obj}
|
||||||
|
:For ${obj} in @{obj}
|
||||||
|
\ Click Element //clr-dg-row[contains(.,'${obj}')]//label
|
||||||
|
Sleep 1
|
||||||
|
Click Element //button[contains(.,'REMOVE')]
|
||||||
|
Sleep 2
|
||||||
|
Click Element //clr-modal//button[contains(.,'DELETE')]
|
||||||
|
Sleep 3
|
||||||
|
|
||||||
Multi-delete Object Without Confirmation
|
Multi-delete Object Without Confirmation
|
||||||
[Arguments] @{obj}
|
[Arguments] @{obj}
|
||||||
:For ${obj} in @{obj}
|
:For ${obj} in @{obj}
|
||||||
|
|
|
@ -307,7 +307,7 @@ Test Case - Delete Multi Project
|
||||||
Create An New Project projectb${d}
|
Create An New Project projectb${d}
|
||||||
Push Image ${ip} test${d} Test1@34 projecta${d} hello-world
|
Push Image ${ip} test${d} Test1@34 projecta${d} hello-world
|
||||||
Filter Object project
|
Filter Object project
|
||||||
Multi-delete Object Without Confirmation projecta projectb
|
Multi-delete Object projecta projectb
|
||||||
# Verify delete project with image should not be deleted directly
|
# Verify delete project with image should not be deleted directly
|
||||||
Page Should Contain projecta${d}
|
Page Should Contain projecta${d}
|
||||||
Page Should Not Contain projectb${d}
|
Page Should Not Contain projectb${d}
|
||||||
|
@ -376,7 +376,7 @@ Test Case - Delete Multi Member
|
||||||
Switch To Member
|
Switch To Member
|
||||||
Add Guest Member to project testa${d}
|
Add Guest Member to project testa${d}
|
||||||
Add Guest Member to project testb${d}
|
Add Guest Member to project testb${d}
|
||||||
Multi-delete Object Without Confirmation testa${d} testb${d}
|
Multi-delete Member testa${d} testb${d}
|
||||||
Page Should Not Contain testa${d}
|
Page Should Not Contain testa${d}
|
||||||
Close Browser
|
Close Browser
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user