blob: 39b6d049e4359f208f1b570ae678ae6cd2f4f129 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'User RSS', feature_category: :user_profile do
let(:user) { create(:user) }
let(:path) { user_path(create(:user)) }
before do
stub_feature_flags(user_profile_overflow_menu_vue: false)
end
context 'when signed in' do
before do
sign_in(user)
visit path
end
it_behaves_like "it has an RSS button with current_user's feed token"
end
context 'when signed out' do
before do
visit path
end
it_behaves_like "it has an RSS button without a feed token"
end
# TODO: implement tests before the FF "user_profile_overflow_menu_vue" is turned on
# See: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/122971
# Related Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/416974
end
|