debian-mirror-gitlab/spec/features/profiles/user_search_settings_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
559 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
require 'spec_helper'
2023-03-04 22:38:38 +05:30
RSpec.describe 'User searches their settings', :js, feature_category: :users do
2021-03-11 19:13:27 +05:30
let_it_be(:user) { create(:user) }
before do
sign_in(user)
end
context 'in profile page' do
2021-04-29 21:17:54 +05:30
before do
visit profile_path
end
2021-03-11 19:13:27 +05:30
2021-09-04 01:27:46 +05:30
it_behaves_like 'can search settings', 'Public avatar', 'Main settings'
2021-03-11 19:13:27 +05:30
end
context 'in preferences page' do
before do
visit profile_preferences_path
end
it_behaves_like 'can search settings', 'Syntax highlighting theme', 'Behavior'
end
end