From 724f36292740a836099eda2a5b6ecd761bcc3577 Mon Sep 17 00:00:00 2001
From: Harsha Muralidhar <hmuralidhar@gitlab.com>
Date: Wed, 30 Mar 2022 10:50:14 +0000
Subject: [PATCH] Adding a retry on exception to try fixing ambiguous element
 error

---
 .../features/ee/browser_ui/13_secure/security_reports_spec.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/qa/qa/specs/features/ee/browser_ui/13_secure/security_reports_spec.rb b/qa/qa/specs/features/ee/browser_ui/13_secure/security_reports_spec.rb
index 88f40b0406313..b7011794416dc 100644
--- a/qa/qa/specs/features/ee/browser_ui/13_secure/security_reports_spec.rb
+++ b/qa/qa/specs/features/ee/browser_ui/13_secure/security_reports_spec.rb
@@ -161,7 +161,9 @@ module QA
           end
 
           EE::Page::Project::Secure::SecurityDashboard.perform do |security_dashboard|
-            security_dashboard.click_vulnerability(description: sast_scan_fp_example_vuln)
+            Support::Retrier.retry_on_exception(max_attempts: 2, reload_page: page, message: 'False positive vuln retry') do
+              security_dashboard.click_vulnerability(description: sast_scan_fp_example_vuln)
+            end
           end
 
           EE::Page::Project::Secure::VulnerabilityDetails.perform do |vulnerability_details|
-- 
GitLab