Commit 4bfa51b1 authored by nwestbury's avatar nwestbury

Add retry to load of artifacts page

parent 0335e0c4
......@@ -9,11 +9,13 @@ module QA
element :directory_name_link
end
def go_to_directory(name)
def go_to_directory(name, retry_attempts = 1)
retry_on_exception(max_attempts: retry_attempts, reload: true, sleep_interval: 10) do
click_element(:directory_name_link, directory_name: name)
end
end
end
end
end
end
end
......@@ -80,6 +80,8 @@ module QA
end
it 'replicates the job artifact to the secondary Geo site', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1658' do
artifact_page_retry_attempts = 12
Runtime::Logger.debug('Visiting the secondary Geo site')
Flow::Login.while_signed_in(address: :geo_secondary) do
......@@ -107,7 +109,7 @@ module QA
end
Page::Project::Artifact::Show.perform do |artifact|
artifact.go_to_directory(@directory_name)
artifact.go_to_directory(@directory_name, artifact_page_retry_attempts)
expect(artifact).to have_content(@file_name)
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