@@ -11,7 +11,7 @@ test('should fire the correct events for input', async () => {
1111 // value of the input programmatically. The value in the browser
1212 // set by a user would be: `C:\\fakepath\\${file.name}`
1313 expect ( getEventSnapshot ( ) ) . toMatchInlineSnapshot ( `
14- Events fired on: input[value=""]
14+ Events fired on: input[value="C:\\\\fakepath\\\\hello.png "]
1515
1616 input[value=""] - pointerover
1717 input[value=""] - pointerenter
@@ -30,8 +30,8 @@ test('should fire the correct events for input', async () => {
3030 input[value=""] - focusout
3131 input[value=""] - focus
3232 input[value=""] - focusin
33- input[value=""] - input
34- input[value=""] - change
33+ input[value="C:\\\\fakepath\\\\hello.png "] - input
34+ input[value="C:\\\\fakepath\\\\hello.png "] - change
3535 ` )
3636} )
3737
@@ -64,8 +64,8 @@ test('should fire the correct events with label', async () => {
6464 label[for="element"] - click: primary
6565 input#element[value=""] - click: primary
6666 input#element[value=""] - focusin
67- input#element[value=""] - input
68- input#element[value=""] - change
67+ input#element[value="C:\\\\fakepath\\\\hello.png "] - input
68+ input#element[value="C:\\\\fakepath\\\\hello.png "] - change
6969 ` )
7070} )
7171
@@ -187,7 +187,7 @@ test.each([
187187 />
188188 ` )
189189
190- await userEvent . upload ( element , files , undefined , { applyAccept} )
190+ await userEvent . upload ( element , files , { applyAccept} )
191191
192192 expect ( element . files ) . toHaveLength ( expectedLength )
193193 } ,
@@ -255,14 +255,3 @@ test('throw error if trying to use upload on an invalid element', async () => {
255255 `The associated INPUT element does not accept file uploads` ,
256256 )
257257} )
258-
259- test ( 'apply init options' , async ( ) => {
260- const { element, getEvents} = setup ( '<input type="file"/>' )
261-
262- await userEvent . upload ( element , new File ( [ ] , 'hello.png' ) , {
263- changeInit : { cancelable : true } ,
264- } )
265-
266- expect ( getEvents ( 'click' ) [ 0 ] ) . toHaveProperty ( 'shiftKey' , false )
267- expect ( getEvents ( 'change' ) [ 0 ] ) . toHaveProperty ( 'cancelable' , true )
268- } )
0 commit comments