diff --git a/qa/qa/specs/features/browser_ui/5_package/package_registry/rubygems_registry_spec.rb b/qa/qa/specs/features/browser_ui/5_package/package_registry/rubygems_registry_spec.rb
index 07fb421f4b19c80b51e20b533a4071957976ed99..060e46db9494f380ed43c80f192f550e37df7d7c 100644
--- a/qa/qa/specs/features/browser_ui/5_package/package_registry/rubygems_registry_spec.rb
+++ b/qa/qa/specs/features/browser_ui/5_package/package_registry/rubygems_registry_spec.rb
@@ -29,7 +29,11 @@ module QA
         Runtime::Feature.disable(:rubygem_packages, project: project)
       end
 
-      it 'publishes a Ruby gem', :reliable, testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347649' do
+      it 'publishes a Ruby gem', :reliable, testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347649',
+        quarantine: {
+          issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/366099',
+          type: :flaky
+        } do
         Flow::Login.sign_in
 
         Support::Retrier.retry_on_exception(max_attempts: 3, sleep_interval: 2) do