Merge pull request #9180 from danfengliu/nightly-test-keyword-create-a-new-project-missing-btn-click-1

Add retry in keyword <Create An New Project> to make sure OK button was clicked successfully
This commit is contained in:
Wang Yan 2019-09-20 18:11:04 +08:00 committed by GitHub
commit 38a9690f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,8 +31,7 @@ Create An New Project
Run Keyword If '${count_quota}'!='${null}' Input Count Quota ${count_quota} 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} Run Keyword If '${storage_quota}'!='${null}' Input Storage Quota ${storage_quota} ${storage_quota_unit}
Capture Page Screenshot Capture Page Screenshot
Retry Element Click ${create_project_OK_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}
Retry Wait Until Page Not Contains Element ${create_project_CANCEL_button_xpath}
Capture Page Screenshot Capture Page Screenshot
Go Into Project ${projectname} has_image=${false} Go Into Project ${projectname} has_image=${false}
@ -201,7 +200,7 @@ Edit Repo Info
Input Text xpath=//*[@id='info-edit-textarea'] test_description_info Input Text xpath=//*[@id='info-edit-textarea'] test_description_info
Retry Element Click xpath=//*[@id='edit-save'] Retry Element Click xpath=//*[@id='edit-save']
Retry Wait Until Page Contains test_description_info Retry Wait Until Page Contains test_description_info
Capture Page Screenshot RepoInfo.png Capture Page Screenshot
Switch To Project Label Switch To Project Label
Retry Element Click xpath=//project-detail//a[contains(.,'Labels')] Retry Element Click xpath=//project-detail//a[contains(.,'Labels')]