diff --git a/spec/features/projects/settings/repository_settings_spec.rb b/spec/features/projects/settings/repository_settings_spec.rb
index cfdd3d9224dbef077b606b17f0b8a06b4bcafb69..def7b1f5420f7d6cdb7c99b792ac116210c3336e 100644
--- a/spec/features/projects/settings/repository_settings_spec.rb
+++ b/spec/features/projects/settings/repository_settings_spec.rb
@@ -167,14 +167,14 @@
         expect(project.remote_mirrors.first.only_protected_branches).to eq(false)
       end
 
-      it 'creates a push mirror that only mirrors protected branches', :js do
+      it 'creates a push mirror that only mirrors protected branches', :js,
+      quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/337394' do
         find('#only_protected_branches').click
 
         expect(find('.js-mirror-protected-hidden', visible: false).value).to eq('1')
 
         fill_in 'url', with: 'ssh://user@localhost/project.git'
         select 'SSH public key', from: 'Authentication method'
-
         select_direction
 
         Sidekiq::Testing.fake! do