diff --git a/packages/trace-viewer/src/ui/inspectorTab.tsx b/packages/trace-viewer/src/ui/inspectorTab.tsx index f7392234ecb50..cc93d25935c28 100644 --- a/packages/trace-viewer/src/ui/inspectorTab.tsx +++ b/packages/trace-viewer/src/ui/inspectorTab.tsx @@ -27,10 +27,11 @@ import type { Language } from '@isomorphic/locatorGenerators'; export const InspectorTab: React.FunctionComponent<{ sdkLanguage: Language, + isInspecting: boolean, setIsInspecting: (isInspecting: boolean) => void, highlightedElement: HighlightedElement, setHighlightedElement: (element: HighlightedElement) => void, -}> = ({ sdkLanguage, setIsInspecting, highlightedElement, setHighlightedElement }) => { +}> = ({ sdkLanguage, isInspecting, setIsInspecting, highlightedElement, setHighlightedElement }) => { const [ariaSnapshotErrors, setAriaSnapshotErrors] = React.useState(); const onAriaEditorChange = React.useCallback((ariaSnapshot: string) => { const { errors } = parseAriaSnapshot(yaml, ariaSnapshot, { prettyErrors: false }); @@ -50,7 +51,9 @@ export const InspectorTab: React.FunctionComponent<{ return
-
Locator
+
Locator
+ setIsInspecting(!isInspecting)} /> +
{ copy(highlightedElement.locator || ''); }}> diff --git a/packages/trace-viewer/src/ui/workbench.tsx b/packages/trace-viewer/src/ui/workbench.tsx index 86ce06f046974..d743e1343e30e 100644 --- a/packages/trace-viewer/src/ui/workbench.tsx +++ b/packages/trace-viewer/src/ui/workbench.tsx @@ -181,6 +181,7 @@ export const Workbench: React.FunctionComponent<{ title: 'Locator', render: () => ,