diff --git a/contentcuration/contentcuration/frontend/channelEdit/views/trash/TrashModal.vue b/contentcuration/contentcuration/frontend/channelEdit/views/trash/TrashModal.vue
index 00822ee76b..fa4fc13ed4 100644
--- a/contentcuration/contentcuration/frontend/channelEdit/views/trash/TrashModal.vue
+++ b/contentcuration/contentcuration/frontend/channelEdit/views/trash/TrashModal.vue
@@ -145,28 +145,16 @@
{{ $tr('deleteButton') }}
-
-
-
- {{ $tr('deleteConfirmationCancelButton') }}
-
-
- {{ $tr('deleteConfirmationDeleteButton') }}
-
-
-
+
{{ $tr('deleteConfirmationText') }}
+
{
it('clicking CLOSE on delete confirmation dialog should close the dialog', async () => {
await wrapper.setData({ showConfirmationDialog: true });
- await wrapper.findComponent('[data-test="closeconfirm"]').trigger('click');
+ const modal = wrapper.findComponent({ name: 'KModal' });
+ await modal.vm.$emit('cancel');
expect(wrapper.vm.showConfirmationDialog).toBe(false);
});
@@ -143,7 +144,8 @@ describe('trashModal', () => {
const deleteContentNodes = jest.spyOn(wrapper.vm, 'deleteContentNodes');
deleteContentNodes.mockImplementation(() => Promise.resolve());
await wrapper.setData({ selected, showConfirmationDialog: true });
- await wrapper.findComponent('[data-test="deleteconfirm"]').trigger('click');
+ const modal = wrapper.findComponent({ name: 'KModal' });
+ await modal.vm.$emit('submit');
expect(deleteContentNodes).toHaveBeenCalledWith(selected);
});
});