Commit 067a4acb authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix flaky spec due to HTTP response order

This makes the spec wait for the unfiltered list to be rendered before
starting to search so that we're sure that the filtered response comes
after the unfiltered one.
parent 07d3c8ab
......@@ -35,6 +35,10 @@ RSpec.describe 'Filter issues by iteration', :js do
stub_licensed_features(iterations: true)
visit page_path
page.has_content?(iteration_1_issue.title)
page.has_content?(iteration_2_issue.title)
page.has_content?(no_iteration_issue.title)
end
it 'filters by iteration' do
......
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