Skip to content

Commit fab996a

Browse files
authored
revert to previous commit
1 parent 371f5c1 commit fab996a

File tree

1 file changed

+2
-4
lines changed
  • contentcuration/contentcuration/frontend/channelEdit/views/trash/__tests__

1 file changed

+2
-4
lines changed

contentcuration/contentcuration/frontend/channelEdit/views/trash/__tests__/trashModal.spec.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ describe('trashModal', () => {
134134

135135
it('clicking CLOSE on delete confirmation dialog should close the dialog', async () => {
136136
await wrapper.setData({ showConfirmationDialog: true });
137-
const modal = wrapper.find('[data-test="delete-confirmation-dialog"]');
138-
await modal.vm.$emit('cancel');
137+
await wrapper.findComponent('[data-test="deleteconfirm"]').vm.$emit('cancel');
139138
expect(wrapper.vm.showConfirmationDialog).toBe(false);
140139
});
141140

@@ -144,8 +143,7 @@ describe('trashModal', () => {
144143
const deleteContentNodes = jest.spyOn(wrapper.vm, 'deleteContentNodes');
145144
deleteContentNodes.mockImplementation(() => Promise.resolve());
146145
await wrapper.setData({ selected, showConfirmationDialog: true });
147-
const modal = wrapper.find('[data-test="delete-confirmation-dialog"]');
148-
await modal.vm.$emit('submit');
146+
await wrapper.findComponent('[data-test="deleteconfirm"]').vm.$emit('submit');
149147
expect(deleteContentNodes).toHaveBeenCalledWith(selected);
150148
});
151149
});

0 commit comments

Comments
 (0)