From f2ce53c243010793c0f3d69b3c5a9ac88f7d9601 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Mon, 28 Apr 2025 21:22:19 +0200 Subject: [PATCH] ci: update locator for uploading files test (#7900) --- test/browser/test/userEvent.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/browser/test/userEvent.test.ts b/test/browser/test/userEvent.test.ts index 9baf75e35..fbce703a4 100644 --- a/test/browser/test/userEvent.test.ts +++ b/test/browser/test/userEvent.test.ts @@ -875,6 +875,7 @@ describe('uploading files', async () => { test.skipIf(server.provider === 'webdriverio')('can upload an instance of File', async () => { const file = new File(['hello'], 'hello.png', { type: 'image/png' }) const input = document.createElement('input') + input.id = 'file' input.type = 'file' document.body.appendChild(input) await userEvent.upload(input, file) @@ -889,6 +890,7 @@ describe('uploading files', async () => { const file1 = new File(['hello1'], 'hello1.png', { type: 'image/png' }) const file2 = new File(['hello2'], 'hello2.png', { type: 'image/png' }) const input = document.createElement('input') + input.id = 'file' input.type = 'file' input.multiple = true document.body.appendChild(input) @@ -908,6 +910,7 @@ describe('uploading files', async () => { server.provider === 'webdriverio' && server.browser === 'firefox', )('can upload a file by filepath relative to test file', async () => { const input = document.createElement('input') + input.id = 'file' input.type = 'file' document.body.appendChild(input) await userEvent.upload(input, '../src/button.css') @@ -922,6 +925,7 @@ describe('uploading files', async () => { server.provider === 'webdriverio' && server.browser === 'firefox', )('can upload several files by filepath relative to test file', async () => { const input = document.createElement('input') + input.id = 'file' input.type = 'file' input.multiple = true document.body.appendChild(input) -- 2.51.2