Commit 70db533b authored by Andrejs Cunskis's avatar Andrejs Cunskis

Merge branch 'nw-update-geo-replication-test' into 'master'

Geo: Add retry to load of artifacts page for Geo secondary sites

See merge request gitlab-org/gitlab!71396
parents 09dd2501 4bfa51b1
......@@ -9,8 +9,10 @@ module QA
element :directory_name_link
end
def go_to_directory(name)
click_element(:directory_name_link, directory_name: 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
......
......@@ -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