diff --git a/packages/trace-viewer/src/ui/inspectorTab.tsx b/packages/trace-viewer/src/ui/inspectorTab.tsx index b6882a6a04..4278cdbc28 100644 --- a/packages/trace-viewer/src/ui/inspectorTab.tsx +++ b/packages/trace-viewer/src/ui/inspectorTab.tsx @@ -47,17 +47,28 @@ export const InspectorTab: React.FunctionComponent<{ setIsInspecting(false); }, [highlightedElement, setHighlightedElement, setIsInspecting]); - return
-
Locator
-
+ return
+
+
Locator
+ { + copy(highlightedElement.locator || ''); + }}> +
+
{ // Updating text needs to go first - react can squeeze a render between the state updates. setHighlightedElement({ ...highlightedElement, locator: text, lastEdited: 'locator' }); setIsInspecting(false); }} />
-
Aria
-
+ +
+
Aria snapshot
+ { + copy(highlightedElement.ariaSnapshot || ''); + }}> +
+
-
- { - copy(highlightedElement.locator || ''); - }}> -
; };