Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix: 'should collect trace with resources, but no js' test in service mode (#28628)
Max Schmitt9b2585cd4ef8
diff --git a/packages/playwright-core/src/client/elementHandle.ts b/packages/playwright-core/src/client/elementHandle.tsindex 0a31ff96ff..9315d50eae 100644--- a/packages/playwright-core/src/client/elementHandle.ts+++ b/packages/playwright-core/src/client/elementHandle.ts@@ -266,7 +266,7 @@ export async function convertInputFiles(files: string | FilePayload | string[] |if (context._connection.isRemote()) {const streams: channels.WritableStreamChannel[] = await Promise.all((items as string[]).map(async item => {const lastModifiedMs = (await fs.promises.stat(item)).mtimeMs;- const { writableStream: stream } = await context._channel.createTempFile({ name: path.basename(item), lastModifiedMs });+ const { writableStream: stream } = await context._wrapApiCall(() => context._channel.createTempFile({ name: path.basename(item), lastModifiedMs }), true);const writable = WritableStream.from(stream);await pipelineAsync(fs.createReadStream(item), writable.stream());return stream;