2021-02-09 07:09:48 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe 'User searches their settings', :js do
|
2021-02-12 01:09:11 -05:00
|
|
|
let_it_be(:user) { create(:user) }
|
2021-02-09 07:09:48 -05:00
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in(user)
|
|
|
|
end
|
|
|
|
|
2021-02-12 01:09:11 -05:00
|
|
|
context 'in profile page' do
|
2021-03-23 08:09:33 -04:00
|
|
|
before do
|
|
|
|
visit profile_path
|
|
|
|
end
|
2021-02-09 07:09:48 -05:00
|
|
|
|
2021-05-19 14:10:39 -04:00
|
|
|
it_behaves_like 'can search settings', 'Public avatar', 'Main settings'
|
2021-02-09 07:09:48 -05:00
|
|
|
end
|
|
|
|
|
2021-02-12 01:09:11 -05:00
|
|
|
context 'in preferences page' do
|
2021-02-09 07:09:48 -05:00
|
|
|
before do
|
2021-02-12 01:09:11 -05:00
|
|
|
visit profile_preferences_path
|
2021-02-09 07:09:48 -05:00
|
|
|
end
|
|
|
|
|
2021-02-12 01:09:11 -05:00
|
|
|
it_behaves_like 'can search settings', 'Syntax highlighting theme', 'Behavior'
|
2021-02-09 07:09:48 -05:00
|
|
|
end
|
|
|
|
end
|