Commit bea070a6 authored by Will Meek's avatar Will Meek

Add a retry to the secure_report QA page component

The security_reports_spec was failing on staging
Screenshots suggested that the page was being tested
before the vulnerabilities were populated.

This commit adds a retry to checking for vulnerability
parent 8f57a536
......@@ -33,7 +33,9 @@ module QA
end
def has_vulnerability?(name)
has_element?(:vulnerability, text: name)
retry_until(reload: true, sleep_interval: 0.5) do
has_element?(:vulnerability, text: name)
end
end
def has_vulnerability_info_content?(name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment