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(ui-mode): don't rerender trace snapshots on long running actions (#36677)
Adam Gastineaua6cb0093567e
diff --git a/packages/trace-viewer/src/ui/snapshotTab.tsx b/packages/trace-viewer/src/ui/snapshotTab.tsxindex bfef4840d6..a680f3d34b 100644--- a/packages/trace-viewer/src/ui/snapshotTab.tsx+++ b/packages/trace-viewer/src/ui/snapshotTab.tsx@@ -56,11 +56,13 @@ export const SnapshotTabsView: React.FunctionComponent<{const snapshots = React.useMemo(() => {return collectSnapshots(action);}, [action]);- const snapshotUrls = React.useMemo(() => {+ const { snapshotInfoUrl, snapshotUrl, popoutUrl } = React.useMemo(() => {const snapshot = snapshots[snapshotTab];- return snapshot ? extendSnapshot(snapshot, shouldPopulateCanvasFromScreenshot) : undefined;+ return snapshot ? extendSnapshot(snapshot, shouldPopulateCanvasFromScreenshot) : { snapshotInfoUrl: undefined, snapshotUrl: undefined, popoutUrl: undefined };}, [snapshots, snapshotTab, shouldPopulateCanvasFromScreenshot]);+ const snapshotUrls = React.useMemo((): SnapshotUrls | undefined => snapshotInfoUrl !== undefined ? { snapshotInfoUrl, snapshotUrl, popoutUrl } : undefined, [snapshotInfoUrl, snapshotUrl, popoutUrl]);+return <div className='snapshot-tab vbox'><Toolbar><ToolbarButton className='pick-locator' title='Pick locator' icon='target' toggled={isInspecting} onClick={() => setIsInspecting(!isInspecting)} />