@@ -875,6 +875,7 @@ describe('uploading files', async () => {
875
875
test . skipIf ( server . provider === 'webdriverio' ) ( 'can upload an instance of File' , async ( ) => {
876
876
const file = new File ( [ 'hello' ] , 'hello.png' , { type : 'image/png' } )
877
877
const input = document . createElement ( 'input' )
878
+ input . id = 'file'
878
879
input . type = 'file'
879
880
document . body . appendChild ( input )
880
881
await userEvent . upload ( input , file )
@@ -889,6 +890,7 @@ describe('uploading files', async () => {
889
890
const file1 = new File ( [ 'hello1' ] , 'hello1.png' , { type : 'image/png' } )
890
891
const file2 = new File ( [ 'hello2' ] , 'hello2.png' , { type : 'image/png' } )
891
892
const input = document . createElement ( 'input' )
893
+ input . id = 'file'
892
894
input . type = 'file'
893
895
input . multiple = true
894
896
document . body . appendChild ( input )
@@ -908,6 +910,7 @@ describe('uploading files', async () => {
908
910
server . provider === 'webdriverio' && server . browser === 'firefox' ,
909
911
) ( 'can upload a file by filepath relative to test file' , async ( ) => {
910
912
const input = document . createElement ( 'input' )
913
+ input . id = 'file'
911
914
input . type = 'file'
912
915
document . body . appendChild ( input )
913
916
await userEvent . upload ( input , '../src/button.css' )
@@ -922,6 +925,7 @@ describe('uploading files', async () => {
922
925
server . provider === 'webdriverio' && server . browser === 'firefox' ,
923
926
) ( 'can upload several files by filepath relative to test file' , async ( ) => {
924
927
const input = document . createElement ( 'input' )
928
+ input . id = 'file'
925
929
input . type = 'file'
926
930
input . multiple = true
927
931
document . body . appendChild ( input )
0 commit comments