Backport filtered search lazy token consistent state fix

From https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2142

Didn't actually fix the spec but is worthwhile to get things in a
consistent state no matter how fast the test runs.
This commit is contained in:
Eric Eastwood 2017-06-21 02:17:27 -05:00
parent 1e42253c6d
commit c0baa43384

View file

@ -14,6 +14,9 @@ module FilteredSearchHelpers
filtered_search.set(search)
if submit
# Wait for the lazy author/assignee tokens that
# swap out the username with an avatar and name
wait_for_requests
filtered_search.send_keys(:enter)
end
end