Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2019-07-24 13:01:28 +0300
committerSanad Liaquat <sliaquat@gitlab.com>2019-07-24 13:01:28 +0300
commit53e444fe8762c7054ab789638130345c98c1edd6 (patch)
tree3149a7749dffba4f12869dd01ce659da3e178f11 /qa
parentf64868ccbd88ecd9517554c5817d077d6e12d1e0 (diff)
parent3e935e56c4b634f84b2ceea3841b620a2556ad09 (diff)
Merge branch 'qa-staging-61-fix-ee-project-templates-spec-ce' into 'master'
CE port of EE branch qa-staging-61-fix-ee-project-templates-spec See merge request gitlab-org/gitlab-ce!30835
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