summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2019-07-17 11:52:32 +0500
committerSanad Liaquat <sliaquat@gitlab.com>2019-07-17 11:52:32 +0500
commit3e935e56c4b634f84b2ceea3841b620a2556ad09 (patch)
tree2080a31a86a72a668ad46e763908fbccd8b9083b /qa
parentbae51b0686ca37ada06fc2d400c265a98f0c6c34 (diff)
downloadgitlab-ce-3e935e56c4b634f84b2ceea3841b620a2556ad09.tar.gz
CE port of EE branch qa-staging-61-fix-ee-project-templates-specqa-staging-61-fix-ee-project-templates-spec-ce
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/component/select2.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/qa/page/component/select2.rb b/qa/qa/page/component/select2.rb
index 85d4abcde9b..d05c44d22b2 100644
--- a/qa/qa/page/component/select2.rb
+++ b/qa/qa/page/component/select2.rb
@@ -8,6 +8,10 @@ module QA
find('.select2-result-label', text: item_text, match: :prefer_exact).click
end
+ def current_selection
+ find('.select2-chosen').text
+ end
+
def clear_current_selection_if_present
if has_css?('a > abbr.select2-search-choice-close', wait: 1.0)
find('a > abbr.select2-search-choice-close').click