Commit 12dbba86 authored by Erick Banks's avatar Erick Banks

Add retrier to verify step

We've added a retrier step to the verification step to ensure elastic
search has enough time to update the index before verifying a change.
parent 0632ad80
......@@ -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