summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2019-03-05 18:31:35 +0500
committerSanad Liaquat <sliaquat@gitlab.com>2019-03-07 09:49:07 +0500
commit3ca673281d3da3dd0e5be71657b30d3cd2de7fa0 (patch)
treead2f625e7a3ce10c94c5c39ab2b0dc84a4ef02d9 /qa
parent35660a222eba577441b13015170df589b524d37b (diff)
downloadgitlab-ce-3ca673281d3da3dd0e5be71657b30d3cd2de7fa0.tar.gz
Use prefer_exact match type
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/component/select2.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/page/component/select2.rb b/qa/qa/page/component/select2.rb
index 98bcb96b92c..3c3461d6b20 100644
--- a/qa/qa/page/component/select2.rb
+++ b/qa/qa/page/component/select2.rb
@@ -3,7 +3,7 @@ module QA
module Component
module Select2
def select_item(item_text)
- find('.select2-result-label', text: item_text).click
+ find('.select2-result-label', text: item_text, match: :prefer_exact).click
end
def clear_current_selection_if_present