diff options
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/merge_request/new.rb | 7 | ||||
-rw-r--r-- | qa/qa/page/merge_request/show.rb | 10 | ||||
-rw-r--r-- | qa/qa/page/project/secure/configuration_form.rb | 12 |
3 files changed, 23 insertions, 6 deletions
diff --git a/qa/qa/page/merge_request/new.rb b/qa/qa/page/merge_request/new.rb index 71e51ddd504..bcc60a8275d 100644 --- a/qa/qa/page/merge_request/new.rb +++ b/qa/qa/page/merge_request/new.rb @@ -20,6 +20,13 @@ module QA element :file_name_content end + def has_secure_description?(scanner_name) + scanner_url_name = scanner_name.downcase.tr('_', '-') + "Configure #{scanner_name} in `.gitlab-ci.yml` using the GitLab managed template. You can " \ + "[add variable overrides](https://docs.gitlab.com/ee/user/application_security/#{scanner_url_name}/#customizing-the-#{scanner_url_name}-settings) " \ + "to customize #{scanner_name} settings." + end + def create_merge_request click_element(:issuable_create_button, Page::MergeRequest::Show) end diff --git a/qa/qa/page/merge_request/show.rb b/qa/qa/page/merge_request/show.rb index 1d8d9ed6859..7de99a11cf6 100644 --- a/qa/qa/page/merge_request/show.rb +++ b/qa/qa/page/merge_request/show.rb @@ -288,13 +288,11 @@ module QA end def merge_immediately! - merge_moment_dropdown_found = has_element?(:merge_moment_dropdown, wait: 0) - - if merge_moment_dropdown_found - click_element(:merge_moment_dropdown) - click_element(:merge_immediately_menu_item) + if has_element?(:merge_moment_dropdown) + click_element(:merge_moment_dropdown, skip_finished_loading_check: true) + click_element(:merge_immediately_menu_item, skip_finished_loading_check: true) else - click_element(:merge_button) + click_element(:merge_button, skip_finished_loading_check: true) end end diff --git a/qa/qa/page/project/secure/configuration_form.rb b/qa/qa/page/project/secure/configuration_form.rb index 73d1601b61e..3e89a57e870 100644 --- a/qa/qa/page/project/secure/configuration_form.rb +++ b/qa/qa/page/project/secure/configuration_form.rb @@ -9,19 +9,31 @@ module QA include QA::Page::Settings::Common view 'app/assets/javascripts/security_configuration/components/feature_card.vue' do + element :dependency_scanning_status, "`${feature.type}_status`" # rubocop:disable QA/ElementWithPattern element :sast_status, "`${feature.type}_status`" # rubocop:disable QA/ElementWithPattern element :sast_enable_button, "`${feature.type}_enable_button`" # rubocop:disable QA/ElementWithPattern + element :dependency_scanning_mr_button, "`${feature.type}_mr_button`" # rubocop:disable QA/ElementWithPattern end def click_sast_enable_button click_element(:sast_enable_button) end + def click_dependency_scanning_mr_button + click_element(:dependency_scanning_mr_button) + end + def has_sast_status?(status_text) within_element(:sast_status) do has_text?(status_text) end end + + def has_dependency_scanning_status?(status_text) + within_element(:dependency_scanning_status) do + has_text?(status_text) + end + end end end end |