2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
RSpec.describe 'Group variables', :js, feature_category: :pipeline_authoring do
|
2017-09-10 17:25:29 +05:30
|
|
|
let(:user) { create(:user) }
|
|
|
|
let(:group) { create(:group) }
|
2019-07-07 11:18:12 +05:30
|
|
|
let!(:variable) { create(:ci_group_variable, key: 'test_key', value: 'test_value', masked: true, group: group) }
|
2018-03-17 18:26:18 +05:30
|
|
|
let(:page_path) { group_settings_ci_cd_path(group) }
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
before do
|
2019-01-03 12:48:30 +05:30
|
|
|
group.add_owner(user)
|
2017-09-10 17:25:29 +05:30
|
|
|
gitlab_sign_in(user)
|
2023-01-13 00:05:48 +05:30
|
|
|
visit page_path
|
2021-01-29 00:20:46 +05:30
|
|
|
wait_for_requests
|
2017-09-10 17:25:29 +05:30
|
|
|
end
|
|
|
|
|
2023-01-13 00:05:48 +05:30
|
|
|
it_behaves_like 'variable list'
|
2017-09-10 17:25:29 +05:30
|
|
|
end
|