This commit is contained in:
Max Schmitt 2024-07-01 10:55:42 +02:00
parent f4b87dbdd6
commit fba15c6e9e

View file

@ -54,7 +54,7 @@ it('should upload a folder', async ({ page, server, browserName, headless, brows
await input.setInputFiles(dir); await input.setInputFiles(dir);
expect(new Set(await page.evaluate(e => [...e.files].map(f => f.webkitRelativePath), input))).toEqual(new Set([ expect(new Set(await page.evaluate(e => [...e.files].map(f => f.webkitRelativePath), input))).toEqual(new Set([
// https://issues.chromium.org/issues/345393164 // https://issues.chromium.org/issues/345393164
...((browserName === 'chromium' && headless && !process.env.PLAYWRIGHT_CHROMIUM_USE_HEADLESS_NEW && browserMajorVersion < 128) ? [] : ['file-upload-test/sub-dir/really.txt']), ...((browserName === 'chromium' && headless && !process.env.PLAYWRIGHT_CHROMIUM_USE_HEADLESS_NEW && browserMajorVersion < 127) ? [] : ['file-upload-test/sub-dir/really.txt']),
'file-upload-test/file1.txt', 'file-upload-test/file1.txt',
'file-upload-test/file2', 'file-upload-test/file2',
])); ]));