diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-23 09:07:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-23 09:07:43 +0300 |
commit | 9d15ef5c5caf584ae16398940c16f2bdafd6f3e2 (patch) | |
tree | 7ae2422c4415ed9da8aba67391c5640fad0d9da8 /spec/frontend/__helpers__/filtered_search_spec_helper.js | |
parent | 26eeb803e0a3412f0b098d5c5a23f32b763f44c2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/__helpers__/filtered_search_spec_helper.js')
-rw-r--r-- | spec/frontend/__helpers__/filtered_search_spec_helper.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/frontend/__helpers__/filtered_search_spec_helper.js b/spec/frontend/__helpers__/filtered_search_spec_helper.js index ecf10694a16..f76fdfca229 100644 --- a/spec/frontend/__helpers__/filtered_search_spec_helper.js +++ b/spec/frontend/__helpers__/filtered_search_spec_helper.js @@ -1,3 +1,5 @@ +import { FILTERED_SEARCH_TERM } from '~/vue_shared/components/filtered_search_bar/constants'; + export default class FilteredSearchSpecHelper { static createFilterVisualTokenHTML(name, operator, value, isSelected) { return FilteredSearchSpecHelper.createFilterVisualToken(name, operator, value, isSelected) @@ -43,7 +45,7 @@ export default class FilteredSearchSpecHelper { static createSearchVisualToken(name) { const li = document.createElement('li'); - li.classList.add('js-visual-token', 'filtered-search-term'); + li.classList.add('js-visual-token', FILTERED_SEARCH_TERM); li.innerHTML = `<div class="name">${name}</div>`; return li; } |