Skip to content

Commit 23458e0

Browse files
committed
test(channelSetModal): updated failing workflows
1 parent 2d6c3ed commit 23458e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ describe('ChannelSetModal', () => {
219219
it('should prompt user if there are unsaved changes', async () => {
220220
expect(getUnsavedDialog(wrapper).attributes('data-test-visible')).toBeFalsy();
221221

222-
await getCollectionNameInput(wrapper).setValue('My collection');
222+
await wrapper.setData({ name: 'My collection' });
223223
await getCloseButton(wrapper).trigger('click');
224224

225225
expect(getUnsavedDialog(wrapper).attributes('data-test-visible')).toBeTruthy();
@@ -228,23 +228,23 @@ describe('ChannelSetModal', () => {
228228

229229
describe('clicking save button', () => {
230230
it("shouldn't update a channel set when a collection name is missing", async () => {
231-
await getCollectionNameInput(wrapper).setValue('');
231+
await wrapper.setData({ name: '' });
232232
await getSaveButton(wrapper).trigger('click');
233233
await flushPromises();
234234

235235
expect(updateChannelSet).not.toHaveBeenCalled();
236236
});
237237

238238
it("shouldn't update a channel set when a collection name is made of empty characters", async () => {
239-
await getCollectionNameInput(wrapper).setValue(' ');
239+
await wrapper.setData({ name: ' ' });
240240
await getSaveButton(wrapper).trigger('click');
241241
await flushPromises();
242242

243243
expect(updateChannelSet).not.toHaveBeenCalled();
244244
});
245245

246246
it('should update a channel set when a collection name is valid', async () => {
247-
await getCollectionNameInput(wrapper).setValue('My collection');
247+
await wrapper.setData({ name: 'My collection' });
248248
await getSaveButton(wrapper).trigger('click');
249249
await flushPromises();
250250

0 commit comments

Comments
 (0)