Fix robot keywords align with UI changes (#5036)

Fix robot keywords align with UI changes
fix replication case for new delete progress
This commit is contained in:
sigsbee 2018-05-24 19:53:23 +08:00 committed by GitHub
parent 8f9e264407
commit 8d12960494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 13 deletions

View File

@ -275,4 +275,4 @@ Delete A Label
Sleep 3
Capture Page Screenshot
Click Element xpath=//clr-modal//div//button[contains(.,'DELETE')]
Wait Until Page Contains Element //clr-tab-content//div[contains(.,'${labelname}')]/../div/clr-icon[@shape="success-standard"
Wait Until Page Contains Element //clr-tab-content//div[contains(.,'${labelname}')]/../div/clr-icon[@shape="success-standard"]

View File

@ -110,8 +110,6 @@ Delete Project Member
Sleep 2
Click Element xpath=//button[contains(.,'DELETE')]
Sleep 2
Click Element xpath=//button[contains(.,'CLOSE')]
Sleep 1
User Should Be Owner Of Project
[Arguments] ${user} ${pwd} ${project}

View File

@ -143,8 +143,9 @@ Trigger Replication Manual
Click Element ${action_bar_replicate}
Wait Until Page Contains Element ${dialog_replicate}
Click Element ${dialog_replicate}
Wait Until Page Contains successfully
Click Element ${dialog_close}
Sleep 2
Page Should Contain Element //clr-tab-content//div[contains(.,'${rule}')]/../div/clr-icon[@shape="success-standard"]
Sleep 1
Rename Rule
[Arguments] ${rule} ${newname}
@ -165,9 +166,7 @@ Delete Rule
Click Element ${action_bar_delete}
Wait Until Page Contains Element ${dialog_delete}
Click Element ${dialog_delete}
Wait Until Page Contains Element ${dialog_close}
Sleep 2
Click Element ${dialog_close}
Filter Rule
[Arguments] ${rule}
@ -212,6 +211,3 @@ Delete Endpoint
Click Element ${action_bar_delete}
Wait Until Page Contains Element ${dialog_delete}
Click Element ${dialog_delete}
Wait Until Page Contains success
Click Element ${dialog_close}

View File

@ -22,7 +22,7 @@ ${HARBOR_VERSION} v1.1.1
*** Keywords ***
Delete Success
[Arguments] @{obj}
:For ${obj} in @{obj}
:For ${obj} in @{obj}
\ Page Should Contain Element //clr-tab-content//div[contains(.,'${obj}')]/../div/clr-icon[@shape="success-standard"]
Sleep 1

View File

@ -68,7 +68,7 @@ Test Case - Endpoint Delete
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
Switch To Registries
Delete Endpoint deletea
Wait Until Page Does Not Contain deletea
Delete Success deletea
Close Browser
Test Case - Rule Edit
@ -90,7 +90,7 @@ Test Case - Rule Delete
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
Switch To Replication Manage
Delete Rule newname
Wait Until Page Does Not Contain newname
Delete Success newname
Close Browser