group_variables_spec.rb 412 Bytes
Newer Older
shinya maeda's avatar
shinya maeda committed
1 2
require 'spec_helper'

3
feature 'Group variables', :js do
shinya maeda's avatar
shinya maeda committed
4 5
  let(:user) { create(:user) }
  let(:group) { create(:group) }
6 7
  let!(:variable) { create(:ci_group_variable, key: 'test_key', value: 'test value', group: group) }
  let(:page_path) { group_settings_ci_cd_path(group) }
shinya maeda's avatar
shinya maeda committed
8 9 10 11 12

  background do
    group.add_master(user)
    gitlab_sign_in(user)

13
    visit page_path
shinya maeda's avatar
shinya maeda committed
14 15
  end

16
  it_behaves_like 'variable list'
shinya maeda's avatar
shinya maeda committed
17
end