Skip to content

Commit

Permalink
test(components): revert skip on test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
victorcg88 committed Aug 7, 2024
1 parent d9cd944 commit 5c75db4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ describe('testing BaseVariableColumnGrid component', () => {

const wrapper2 = mountComponent();

console.log(wrapper2.classes());
await nextTick();

expect(wrapper2.classes('x-base-grid--cols-6')).toBe(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Result } from '@empathyco/x-types';
import { getDataTestSelector, installNewXPlugin } from '../../__tests__/utils';
import PageLoaderButton from '../page-loader-button.vue';
import { getResultsStub } from '../../__stubs__/index';
import { bus } from '../../plugins/index';
import { XPlugin } from '../../plugins/index';

function renderPageLoaderButton({
query = 'dress',
Expand All @@ -29,7 +29,7 @@ function renderPageLoaderButton({

return {
wrapper,
emitSpy: jest.spyOn(bus, 'emit')
emitSpy: jest.spyOn(XPlugin.bus, 'emit')
};
}

Expand Down Expand Up @@ -75,9 +75,7 @@ describe('testing PageLoaderButton component', () => {
expect(wrapper.find('.x-rounded-full').exists()).toBe(true);
});

// TODO: Enable test when BaseEventButton component is migrated
// eslint-disable-next-line jest/no-disabled-tests
it.skip('emits the event UserReachedResultsListEnd when the button is clicked', () => {
it('emits the event UserReachedResultsListEnd when the button is clicked', () => {
const { wrapper, emitSpy } = renderPageLoaderButton();
const baseEventButton = wrapper.find(getDataTestSelector('load-content'));

Expand All @@ -92,9 +90,7 @@ describe('testing PageLoaderButton component', () => {
});
});

// TODO: Enable test when BaseEventButton component is migrated
// eslint-disable-next-line jest/no-disabled-tests
it.skip('emits an event passed via prop', async () => {
it('emits an event passed via prop', async () => {
const { wrapper, emitSpy } = renderPageLoaderButton();
const baseEventButton = wrapper.find(getDataTestSelector('load-content'));

Expand Down

0 comments on commit 5c75db4

Please sign in to comment.