From 9a147f0999cbeef1adb425e79a6bd2950b8f8ed7 Mon Sep 17 00:00:00 2001 From: "Danfeng Liu (c)" Date: Fri, 20 Sep 2019 16:22:10 +0800 Subject: [PATCH] In nightly test, keyword failed after angular upgrade, the OK button in create new project page was clicked, but it's not effective, so I add a retry for OK button click, if the button was not disappeared, script will be clicked again. Signed-off-by: Danfeng Liu (c) --- tests/resources/Harbor-Pages/Project.robot | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/resources/Harbor-Pages/Project.robot b/tests/resources/Harbor-Pages/Project.robot index d6e021ed6..94ce7493e 100644 --- a/tests/resources/Harbor-Pages/Project.robot +++ b/tests/resources/Harbor-Pages/Project.robot @@ -31,8 +31,7 @@ Create An New Project Run Keyword If '${count_quota}'!='${null}' Input Count Quota ${count_quota} Run Keyword If '${storage_quota}'!='${null}' Input Storage Quota ${storage_quota} ${storage_quota_unit} Capture Page Screenshot - Retry Element Click ${create_project_OK_button_xpath} - Retry Wait Until Page Not Contains Element ${create_project_CANCEL_button_xpath} + Retry Double Keywords When Error Retry Element Click ${create_project_OK_button_xpath} Retry Wait Until Page Not Contains Element ${create_project_OK_button_xpath} Capture Page Screenshot Go Into Project ${projectname} has_image=${false} @@ -201,7 +200,7 @@ Edit Repo Info Input Text xpath=//*[@id='info-edit-textarea'] test_description_info Retry Element Click xpath=//*[@id='edit-save'] Retry Wait Until Page Contains test_description_info - Capture Page Screenshot RepoInfo.png + Capture Page Screenshot Switch To Project Label Retry Element Click xpath=//project-detail//a[contains(.,'Labels')]