diff --git a/qa/qa/specs/features/ee/browser_ui/3_create/repository/merge_with_code_owner_in_root_group_spec.rb b/qa/qa/specs/features/ee/browser_ui/3_create/repository/merge_with_code_owner_in_root_group_spec.rb
index a6f6c3ee99991d9c649925a4062bcb73763b6146..78f5c88ef8f92d60f4ac81478fd81461b16636ae 100644
--- a/qa/qa/specs/features/ee/browser_ui/3_create/repository/merge_with_code_owner_in_root_group_spec.rb
+++ b/qa/qa/specs/features/ee/browser_ui/3_create/repository/merge_with_code_owner_in_root_group_spec.rb
@@ -23,7 +23,12 @@ module QA
           project.remove_via_api!
         end
 
-        context 'and the code owner is the root group', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347804' do
+        context 'and the code owner is the root group', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347804',
+          quarantine: {
+            only: { subdomain: %i[staging staging-canary] },
+            issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/422935',
+            type: :flaky
+          } do
           let(:codeowner) { root_group.path }
           let(:group_or_project) { root_group }
 
diff --git a/qa/qa/specs/features/ee/browser_ui/3_create/repository/merge_with_code_owner_in_subgroup_spec.rb b/qa/qa/specs/features/ee/browser_ui/3_create/repository/merge_with_code_owner_in_subgroup_spec.rb
index 141e0cdb9b7d842520f8d2085d57063552827135..7b11a5b4ec903a78158d5755922dc72959714199 100644
--- a/qa/qa/specs/features/ee/browser_ui/3_create/repository/merge_with_code_owner_in_subgroup_spec.rb
+++ b/qa/qa/specs/features/ee/browser_ui/3_create/repository/merge_with_code_owner_in_subgroup_spec.rb
@@ -21,7 +21,12 @@ module QA
           approver.remove_via_api!
         end
 
-        context 'and the code owner is the root group', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347801' do
+        context 'and the code owner is the root group', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347801',
+          quarantine: {
+            only: { subdomain: %i[staging staging-canary] },
+            issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/422975',
+            type: :flaky
+          } do
           let(:codeowner) { project.group.sandbox.path }
           let(:group_or_project) { project.group.sandbox }