diff options
author | Sanad Liaquat <sliaquat@gitlab.com> | 2019-07-24 13:01:28 +0300 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-07-24 13:01:28 +0300 |
commit | 53e444fe8762c7054ab789638130345c98c1edd6 (patch) | |
tree | 3149a7749dffba4f12869dd01ce659da3e178f11 /qa | |
parent | f64868ccbd88ecd9517554c5817d077d6e12d1e0 (diff) | |
parent | 3e935e56c4b634f84b2ceea3841b620a2556ad09 (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.rb | 4 |
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 |