Commit ad05cb52 authored by Dylan Griffith's avatar Dylan Griffith

Fix race condition in auto devops QA spec: ensure we wait for Install button to appear

parent ab5c97b1
......@@ -16,6 +16,7 @@ module QA
def install!(application_name)
within(".js-cluster-application-row-#{application_name}") do
page.has_button?('Install', wait: 30)
click_on 'Install'
end
end
......
......@@ -121,8 +121,9 @@ describe 'Clusters Applications', :js do
def wait_until_helm_created!
retries = 0
while Clusters::Cluster.last.application_helm.nil? do
while Clusters::Cluster.last.application_helm.nil?
raise "Timed out waiting for helm application to be created in DB" if (retries += 1) > 3
sleep(1)
end
end
......
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