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
This commit is contained in:
Sanad Liaquat 2019-07-24 10:01:28 +00:00
commit 53e444fe87

View file

@ -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