Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

feat: Allow multiple trace uploads in the trace viewer (#23517)

KotlinIslandafa531ef602a
diff --git a/packages/trace-viewer/src/ui/workbenchLoader.tsx b/packages/trace-viewer/src/ui/workbenchLoader.tsx
index d23bd5ba74..3445665ce3 100644
--- a/packages/trace-viewer/src/ui/workbenchLoader.tsx
+++ b/packages/trace-viewer/src/ui/workbenchLoader.tsx
@@ -157,9 +157,10 @@ export const WorkbenchLoader: React.FunctionComponent<{
<button onClick={() => {
const input = document.createElement('input');
input.type = 'file';
+ input.multiple = true;
input.click();
input.addEventListener('change', e => handleFileInputChange(e));
- }}>Select file</button>
+ }}>Select file(s)</button>
<div style={{ maxWidth: 400 }}>Playwright Trace Viewer is a Progressive Web App, it does not send your trace anywhere,
it opens it locally.</div>
</div>}