diff options
Diffstat (limited to 'qa/qa/page/project/settings/services/jira.rb')
-rw-r--r-- | qa/qa/page/project/settings/services/jira.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/qa/qa/page/project/settings/services/jira.rb b/qa/qa/page/project/settings/services/jira.rb index 827508e488c..41034bbd897 100644 --- a/qa/qa/page/project/settings/services/jira.rb +++ b/qa/qa/page/project/settings/services/jira.rb @@ -41,10 +41,7 @@ module QA yield self if block_given? - click_save_changes_button - wait_until(reload: false) do - has_element?(:save_changes_button, wait: 1) ? !find_element(:save_changes_button).disabled? : true - end + click_save_changes_and_wait end def enable_jira_issues @@ -55,6 +52,13 @@ module QA fill_element(:service_jira_project_key_field, key) end + def click_save_changes_and_wait + click_save_changes_button + wait_until(reload: false) do + has_element?(:save_changes_button, wait: 1) ? !find_element(:save_changes_button).disabled? : true + end + end + private def set_jira_server_url(url) @@ -94,3 +98,5 @@ module QA end end end + +QA::Page::Project::Settings::Services::Jira.prepend_mod_with('Page::Project::Settings::Services::Jira', namespace: QA) |