import { GlFilteredSearchToken, GlFilteredSearchSuggestion, GlIcon } from '@gitlab/ui'; import { shallowMount } from '@vue/test-utils'; import { stubComponent } from 'helpers/stub_component'; import PipelineStatusToken from '~/pipelines/components/pipelines_list/tokens/pipeline_status_token.vue'; describe('Pipeline Status Token', () => { let wrapper; const findFilteredSearchToken = () => wrapper.findComponent(GlFilteredSearchToken); const findAllFilteredSearchSuggestions = () => wrapper.findAllComponents(GlFilteredSearchSuggestion); const findAllGlIcons = () => wrapper.findAllComponents(GlIcon); const defaultProps = { config: { type: 'status', icon: 'status', title: 'Status', unique: true, }, value: { data: '', }, cursorPosition: 'start', }; const createComponent = () => { wrapper = shallowMount(PipelineStatusToken, { propsData: { ...defaultProps, }, stubs: { GlFilteredSearchToken: stubComponent(GlFilteredSearchToken, { template: `