Skip to content

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

chore(trace-viewer): add missing uploadedTraceName to the useEffect dependencies (#10294)

Max Schmitt65a9037461ff
diff --git a/packages/playwright-core/src/web/traceViewer/ui/workbench.tsx b/packages/playwright-core/src/web/traceViewer/ui/workbench.tsx
index d8bb6d0a54..31464cacd3 100644
--- a/packages/playwright-core/src/web/traceViewer/ui/workbench.tsx
+++ b/packages/playwright-core/src/web/traceViewer/ui/workbench.tsx
@@ -106,7 +106,7 @@ export const Workbench: React.FunctionComponent<{
setContextEntry(emptyContext);
}
})();
- }, [traceURL]);
+ }, [traceURL, uploadedTraceName]);
const defaultSnapshotInfo = { viewport: contextEntry.options.viewport || { width: 1280, height: 720 }, url: '' };
const boundaries = { minimum: contextEntry.startTime, maximum: contextEntry.endTime };