From 3e935e56c4b634f84b2ceea3841b620a2556ad09 Mon Sep 17 00:00:00 2001 From: Sanad Liaquat Date: Wed, 17 Jul 2019 11:52:32 +0500 Subject: [PATCH] CE port of EE branch qa-staging-61-fix-ee-project-templates-spec --- qa/qa/page/component/select2.rb | 4 ++++ 1 file changed, 4 insertions(+) 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