Welcome to mirror list, hosted at ThFree Co, Russian Federation.

group_integrations_shared_context.rb « integrations « features « shared_contexts « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5996fcc6593fa113a0b2ae92940edd43ca3ddb81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# frozen_string_literal: true

RSpec.shared_context 'group integration activation' do
  include_context 'instance and group integration activation'

  let_it_be(:group) { create(:group) }
  let_it_be(:user) { create(:user) }

  before_all do
    group.add_owner(user)
  end

  before do
    sign_in(user)
  end

  def visit_group_integrations
    visit group_settings_integrations_path(group)
  end

  def visit_group_integration(name)
    visit_group_integrations

    within('#content-body') do
      click_link(name)
    end
  end
end