summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-06-21 02:17:27 -0500
committerEric Eastwood <contact@ericeastwood.com>2017-06-21 10:16:29 -0500
commitc0baa43384da825aab7f32a610f6591755347722 (patch)
tree73e2322be8e5d50a65a5b12fcaa112fda29f4793
parent1e42253c6dd28f64d7a0f4227c60426c71db62bd (diff)
downloadgitlab-ce-c0baa43384da825aab7f32a610f6591755347722.tar.gz
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.
-rw-r--r--spec/support/filtered_search_helpers.rb3
1 files changed, 3 insertions, 0 deletions
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