From 47a1d61d07f19c32934b1c6bad9c7bba3f6df268 Mon Sep 17 00:00:00 2001 From: Paulo Bernardo Date: Mon, 6 Nov 2023 16:28:16 -0300 Subject: [PATCH] fix: tests --- .../whatsAppTemplates/FormTabContentButtons.spec.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/unit/specs/components/whatsAppTemplates/FormTabContentButtons.spec.js b/tests/unit/specs/components/whatsAppTemplates/FormTabContentButtons.spec.js index 8c641b84..b4c54ba2 100644 --- a/tests/unit/specs/components/whatsAppTemplates/FormTabContentButtons.spec.js +++ b/tests/unit/specs/components/whatsAppTemplates/FormTabContentButtons.spec.js @@ -2,6 +2,7 @@ import Vuex from 'vuex'; import { mount, createLocalVue } from '@vue/test-utils'; import { unnnicSelect, unnnicInput } from '@weni/unnnic-system'; import FormTabContentButtons from '@/components/whatsAppTemplates/FormTabContentButtons.vue'; +import BaseInput from '../../../../../src/components/BaseInput.vue'; import i18n from '@/utils/plugins/i18n'; const localVue = createLocalVue(); @@ -268,7 +269,7 @@ describe('components/whatsAppTemplates/FormTabContentButtons.vue', () => { }); await wrapper.setData({ buttons }); - const replyInput = wrapper.findComponent(unnnicInput); + const replyInput = wrapper.findComponent(BaseInput); replyInput.vm.$emit('input', 'reply text'); await wrapper.vm.$nextTick(); @@ -295,7 +296,7 @@ describe('components/whatsAppTemplates/FormTabContentButtons.vue', () => { }); await wrapper.setData({ buttons }); - const replyInput = wrapper.findAllComponents(unnnicInput).at(1); + const replyInput = wrapper.findAllComponents(BaseInput).at(1); replyInput.vm.$emit('input', 'reply text'); await wrapper.vm.$nextTick(); @@ -409,7 +410,7 @@ describe('components/whatsAppTemplates/FormTabContentButtons.vue', () => { }); await wrapper.setData({ buttons }); - const nameInput = wrapper.findAllComponents(unnnicInput).at(2); + const nameInput = wrapper.findAllComponents(BaseInput).at(1); nameInput.vm.$emit('input', 'new website'); await wrapper.vm.$nextTick();