diff options
Diffstat (limited to 'spec/support/shared_examples/integrations/integration_settings_form.rb')
-rw-r--r-- | spec/support/shared_examples/integrations/integration_settings_form.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/spec/support/shared_examples/integrations/integration_settings_form.rb b/spec/support/shared_examples/integrations/integration_settings_form.rb index d0bb40e43ee..d8a46180796 100644 --- a/spec/support/shared_examples/integrations/integration_settings_form.rb +++ b/spec/support/shared_examples/integrations/integration_settings_form.rb @@ -22,10 +22,7 @@ RSpec.shared_examples 'integration settings form' do events = parse_json(trigger_events_for_integration(integration)) events.each do |trigger| - # normalizing the title because capybara location is case sensitive - title = normalize_title trigger[:title], integration - - expect(page).to have_field(title, type: 'checkbox', wait: 0), + expect(page).to have_field(trigger[:title], type: 'checkbox', wait: 0), "#{integration.title} field #{title} checkbox not present" end end @@ -35,12 +32,6 @@ RSpec.shared_examples 'integration settings form' do private - def normalize_title(title, integration) - return 'Merge request' if integration.is_a?(Integrations::Jira) && title == 'merge_request' - - title.titlecase - end - def parse_json(json) Gitlab::Json.parse(json, symbolize_names: true) end |