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

This commit is contained in:
KotlinIsland 2023-06-06 05:34:54 +10:00 committed by GitHub
parent ba69de8c7c
commit afa531ef60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>}