debian-mirror-gitlab/spec/features/profiles/user_search_settings_spec.rb
2023-04-23 21:23:45 +05:30

27 lines
566 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'User searches their settings', :js, feature_category: :user_profile do
let_it_be(:user) { create(:user) }
before do
sign_in(user)
end
context 'in profile page' do
before do
visit profile_path
end
it_behaves_like 'can search settings', 'Public avatar', 'Main settings'
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