debian-mirror-gitlab/spec/features/admin/admin_search_settings_spec.rb
2023-03-04 22:38:38 +05:30

29 lines
703 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Admin searches application settings', :js, feature_category: :global_search 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
visit(admin_application_settings_appearances_path)
end
it_behaves_like 'cannot search settings'
end
context 'in ci/cd settings page' do
before do
visit(ci_cd_admin_application_settings_path)
end
it_behaves_like 'can search settings', 'Variables', 'Package Registry'
end
end