diff options
Diffstat (limited to 'spec/features/users/snippets_spec.rb')
-rw-r--r-- | spec/features/users/snippets_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/users/snippets_spec.rb b/spec/features/users/snippets_spec.rb index 98ac9fa5f92..3a56b371a8c 100644 --- a/spec/features/users/snippets_spec.rb +++ b/spec/features/users/snippets_spec.rb @@ -4,10 +4,10 @@ require 'spec_helper' RSpec.describe 'Snippets tab on a user profile', :js, feature_category: :source_code_management do context 'when the user has snippets' do - let(:user) { create(:user, :no_super_sidebar) } + let(:user) { create(:user) } before do - stub_feature_flags(profile_tabs_vue: false, super_sidebar_logged_out: false) + stub_feature_flags(profile_tabs_vue: false) end context 'pagination' do @@ -16,7 +16,7 @@ RSpec.describe 'Snippets tab on a user profile', :js, feature_category: :source_ before do allow(Snippet).to receive(:default_per_page).and_return(1) visit user_path(user) - page.within('.user-profile-nav') { click_link 'Snippets' } + within_testid('super-sidebar') { click_link 'Snippets' } wait_for_requests end @@ -30,9 +30,9 @@ RSpec.describe 'Snippets tab on a user profile', :js, feature_category: :source_ let!(:other_snippet) { create(:snippet, :public) } it 'contains only internal and public snippets of a user when a user is logged in' do - sign_in(create(:user, :no_super_sidebar)) + sign_in(create(:user)) visit user_path(user) - page.within('.user-profile-nav') { click_link 'Snippets' } + within_testid('super-sidebar') { click_link 'Snippets' } wait_for_requests expect(page).to have_selector('.snippet-row', count: 2) @@ -43,7 +43,7 @@ RSpec.describe 'Snippets tab on a user profile', :js, feature_category: :source_ it 'contains only public snippets of a user when a user is not logged in' do visit user_path(user) - page.within('.user-profile-nav') { click_link 'Snippets' } + within_testid('super-sidebar') { click_link 'Snippets' } wait_for_requests expect(page).to have_selector('.snippet-row', count: 1) |