Skip to content

Commit d1c5c02

Browse files
done
1 parent 7291ce5 commit d1c5c02

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

contentcuration/contentcuration/frontend/channelList/views/ChannelSet/__tests__/StudioCollectionsTable.spec.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { render, screen, within } from '@testing-library/vue';
1+
import { render, screen, within, waitFor } from '@testing-library/vue';
22
import userEvent from '@testing-library/user-event';
33
import { createLocalVue } from '@vue/test-utils';
44
import Vuex, { Store } from 'vuex';
@@ -45,7 +45,7 @@ const createMockStore = () => {
4545
},
4646
},
4747
actions: {
48-
showSnackbar: jest.fn(),
48+
showSnackbarSimple: jest.fn(),
4949
},
5050
});
5151
};
@@ -80,6 +80,9 @@ const renderComponent = async (options = {}) => {
8080
router,
8181
...options,
8282
});
83+
await waitFor(() => {
84+
expect(mockActions.loadChannelSetList).toHaveBeenCalled();
85+
});
8386

8487
await nextTick();
8588

0 commit comments

Comments
 (0)