@@ -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