File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
contentcuration/contentcuration/frontend/channelEdit/views/trash/__tests__ Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments