2021-02-12 01:09:11 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe 'Admin searches application settings', :js do
|
|
|
|
let_it_be(:admin) { create(:admin) }
|
|
|
|
let_it_be(:application_settings) { create(:application_setting) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in(admin)
|
|
|
|
gitlab_enable_admin_mode_sign_in(admin)
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'in appearances page' do
|
|
|
|
before do
|
2021-06-11 11:09:58 -04:00
|
|
|
visit(admin_application_settings_appearances_path)
|
2021-02-12 01:09:11 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
it_behaves_like 'cannot search settings'
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'in ci/cd settings page' do
|
2021-03-23 08:09:33 -04:00
|
|
|
before do
|
|
|
|
visit(ci_cd_admin_application_settings_path)
|
|
|
|
end
|
2021-02-12 01:09:11 -05:00
|
|
|
|
2021-03-23 08:09:33 -04:00
|
|
|
it_behaves_like 'can search settings', 'Variables', 'Package Registry'
|
2021-02-12 01:09:11 -05:00
|
|
|
end
|
|
|
|
end
|