Fix failed auto test case to suit new UI (#4188)

This commit is contained in:
sigsbee 2018-01-30 19:04:24 +08:00 committed by Yan
parent f85761021d
commit eb98936845
3 changed files with 15 additions and 5 deletions

View File

@ -75,13 +75,13 @@ Change Project Member Role
User Can Change Role
[arguments] ${username}
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')]
User Can Not Change Role
[arguments] ${username}
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')]
#this keyworkd seems will not use any more, will delete in the future

View File

@ -52,6 +52,16 @@ Multi-delete Object
Click Element //clr-modal//button[contains(.,'DELETE')]
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
[Arguments] @{obj}
:For ${obj} in @{obj}

View File

@ -307,7 +307,7 @@ Test Case - Delete Multi Project
Create An New Project projectb${d}
Push Image ${ip} test${d} Test1@34 projecta${d} hello-world
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
Page Should Contain projecta${d}
Page Should Not Contain projectb${d}
@ -376,7 +376,7 @@ Test Case - Delete Multi Member
Switch To Member
Add Guest Member to project testa${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}
Close Browser
@ -438,4 +438,4 @@ Test Case - View Scan Error
#Test Case - OVA reset
# Reset VM ${vm_name} ${vc_host} ${vc_user} ${vc_password}
# Wait for Harbor Ready https ${ip}
# Wait for Harbor Ready https ${ip}