From c0baa43384da825aab7f32a610f6591755347722 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Wed, 21 Jun 2017 02:17:27 -0500 Subject: [PATCH] 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. --- spec/support/filtered_search_helpers.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/support/filtered_search_helpers.rb b/spec/support/filtered_search_helpers.rb index 37cc308e613..d21c4324d9e 100644 --- a/spec/support/filtered_search_helpers.rb +++ b/spec/support/filtered_search_helpers.rb @@ -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