mirror of
https://github.com/goharbor/harbor
synced 2025-04-23 19:23:53 +00:00
In nightly tests, keyword <Multi Delete Object> failed on a rare occasion, so add retry for elemnet click in this keyword. (#7022)
Signed-off-by: danfengliu <danfengl@vmware.com>
This commit is contained in:
parent
d199a94724
commit
4dc983d419
@ -33,3 +33,4 @@ ${repo_delete_btn} xpath=//button[contains(.,'Delete')]
|
||||
${repo_delete_confirm_btn} xpath=//clr-modal//button[2]
|
||||
${repo_retag_confirm_dlg} css=${modal-dialog}
|
||||
${repo_delete_on_card_view_btn} //clr-modal//button[contains(.,'DELETE')]
|
||||
${delete_btn} //button[contains(.,'Delete')]
|
||||
|
@ -41,7 +41,7 @@ Filter Object
|
||||
Wait Until Element Is Visible And Enabled ${element}
|
||||
Click Element ${element}
|
||||
${element}= Set Variable xpath=//hbr-filter//input
|
||||
Wait Until Element Is Visible And Enabled ${element}
|
||||
Wait Until Element Is Visible And Enabled ${element}
|
||||
Input Text ${element} ${kw}
|
||||
Sleep 3
|
||||
|
||||
@ -50,24 +50,20 @@ Select Object
|
||||
[Arguments] ${obj}
|
||||
${element}= Set Variable xpath=//clr-dg-row[contains(.,'${obj}')]//label
|
||||
Wait Until Element Is Visible And Enabled ${element}
|
||||
Click Element ${element}
|
||||
Click Element ${element}
|
||||
|
||||
# This func cannot support as the delete user flow changed.
|
||||
Multi-delete Object
|
||||
[Arguments] @{obj}
|
||||
:For ${obj} in @{obj}
|
||||
\ ${element}= Set Variable xpath=//clr-dg-row[contains(.,'${obj}')]//label
|
||||
\ Wait Until Element Is Visible And Enabled ${element}
|
||||
\ Click Element ${element}
|
||||
\ Retry Element Click ${element}
|
||||
Capture Page Screenshot
|
||||
${element}= Set Variable xpath=//button[contains(.,'Delete')]
|
||||
Wait Until Element Is Visible And Enabled ${element}
|
||||
Click Element ${element}
|
||||
Retry Element Click ${repo_delete_btn}
|
||||
Capture Page Screenshot
|
||||
${element}= Set Variable xpath=//clr-modal//button[contains(.,'DELETE')]
|
||||
Wait Until Element Is Visible And Enabled ${element}
|
||||
Click Element ${element}
|
||||
Retry Element Click ${repo_delete_on_card_view_btn}
|
||||
Capture Page Screenshot
|
||||
Sleep 1
|
||||
|
||||
Multi-delete User
|
||||
[Arguments] @{obj}
|
||||
@ -81,7 +77,7 @@ Multi-delete User
|
||||
Click Element //clr-modal//button[contains(.,'DELETE')]
|
||||
Sleep 3
|
||||
|
||||
Multi-delete Member
|
||||
Multi-delete Member
|
||||
[Arguments] @{obj}
|
||||
:For ${obj} in @{obj}
|
||||
\ Click Element //clr-dg-row[contains(.,'${obj}')]//label
|
||||
|
Loading…
x
Reference in New Issue
Block a user