diff --git a/webapp/components/FilterPosts/FilterPosts.spec.js b/webapp/components/FilterPosts/FilterPosts.spec.js index 37c34919a..3dd1cebef 100644 --- a/webapp/components/FilterPosts/FilterPosts.spec.js +++ b/webapp/components/FilterPosts/FilterPosts.spec.js @@ -150,7 +150,7 @@ describe('FilterPosts.vue', () => { describe('click on an "emotions-buttons" button', () => { it('calls TOGGLE_EMOTION when clicked', () => { const wrapper = openFilterPosts() - happyEmotionButton = wrapper.findAll('button.emotions-buttons').at(1) + happyEmotionButton = wrapper.findAll('.emotion-button .base-button').at(1) happyEmotionButton.trigger('click') expect(mutations['posts/TOGGLE_EMOTION']).toHaveBeenCalledWith({}, 'happy') }) @@ -158,7 +158,7 @@ describe('FilterPosts.vue', () => { it('sets the attribute `src` to colorized image', () => { getters['posts/filteredByEmotions'] = jest.fn(() => ['happy']) const wrapper = openFilterPosts() - happyEmotionButton = wrapper.findAll('button.emotions-buttons').at(1) + happyEmotionButton = wrapper.findAll('.emotion-button .base-button').at(1) const happyEmotionButtonImage = happyEmotionButton.find('img') expect(happyEmotionButtonImage.attributes().src).toEqual('/img/svg/emoji/happy_color.svg') }) diff --git a/webapp/components/generic/SearchableInput/SearchableInput.spec.js b/webapp/components/generic/SearchableInput/SearchableInput.spec.js index 994e617d6..cc538a50b 100644 --- a/webapp/components/generic/SearchableInput/SearchableInput.spec.js +++ b/webapp/components/generic/SearchableInput/SearchableInput.spec.js @@ -32,7 +32,7 @@ describe('SearchableInput.vue', () => { } describe('mount', () => { - let select, dropdown + let select beforeEach(() => { select = wrapper.find('.ds-select') diff --git a/webapp/components/generic/SearchableInput/SearchableInput.vue b/webapp/components/generic/SearchableInput/SearchableInput.vue index c92d22cbe..a45f4104c 100644 --- a/webapp/components/generic/SearchableInput/SearchableInput.vue +++ b/webapp/components/generic/SearchableInput/SearchableInput.vue @@ -1,9 +1,5 @@