Commit f5bece63 authored by Dan Davison's avatar Dan Davison

Merge branch 'ebg-add-retry-to-elasticsearch' into 'master'

Add retrier to verify step for ee/browser_ui/enablement/elasticsearch/elasticsearch_reindexing_spec.rb

Closes #223033

See merge request gitlab-org/gitlab!35469
parents 92fdc71b 12dbba86
......@@ -66,11 +66,14 @@ module QA
menu.search_for content[0..33]
end
Page::Search::Results.perform do |search|
search.switch_to_code
expect(search).to have_file_in_project template[:file_name], project.name
expect(search).to have_file_with_content template[:file_name], content[0..33]
QA::Support::Retrier.retry_on_exception(max_attempts: 10, sleep_interval: 6) do
Page::Search::Results.perform do |search|
search.switch_to_code
aggregate_failures "testing expectations" do
expect(search).to have_file_in_project template[:file_name], project.name
expect(search).to have_file_with_content template[:file_name], content[0..33]
end
end
end
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