You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Test only the element properties panel feature at http://localhost:5175.
49
+
Do not explore unrelated flows. If a step is blocked after one retry, fail with evidence.
50
+
49
51
react-grab is a browser overlay tool that lets you inspect React elements.
50
-
You activate it by holding the Meta/Ctrl key, then hovering over elements
51
-
shows a selection label with the element tag name and component name.
52
+
When active, hovering over elements shows a selection label with the element
53
+
tag name and component name.
52
54
53
-
How to activate react-grab:
54
-
1. Hold the Meta key (Cmd on Mac, Ctrl on Linux) for ~200ms to activate the overlay.
55
-
2. While holding Meta, hover over elements to see the selection highlight.
56
-
3. Click an element to select it — a selection label appears below it.
57
-
4. Press arrow keys (Up/Down) to navigate the DOM tree (parent/child).
55
+
Important repo-specific testing notes:
56
+
1. This GitHub Actions run is on Linux, so the default activation shortcut is Ctrl+C.
57
+
Do not try to activate react-grab by holding only Ctrl.
58
+
2. React Grab is in toggle mode by default. Press Ctrl+C once to activate it,
59
+
then hover elements and click to select them.
60
+
3. If keyboard activation is flaky in CI, you may call window.__REACT_GRAB__.activate()
61
+
from a Playwright evaluation instead.
62
+
4. For assertions, prefer Playwright evaluation against the app state and shadow DOM
63
+
over ARIA snapshots for the overlay UI.
64
+
5. The overlay renders inside the shadow root of the element matching [data-react-grab].
65
+
Helpful assertions can use window.__REACT_GRAB__.getState() and
66
+
document.querySelector('[data-react-grab]')?.shadowRoot, especially
67
+
[data-react-grab-selection-label].
68
+
6. After activation, hover an element, click it to select it, then use ArrowUp / ArrowDown
69
+
to navigate and verify the panel updates.
58
70
59
71
What changed in this branch:
60
72
The old inspect stack (a list of ancestor elements you could arrow-navigate through)
@@ -69,7 +81,7 @@ jobs:
69
81
- Box model overlay: margin regions rendered as semi-transparent overlay around the selection, padding regions rendered inside.
70
82
71
83
Test scenarios:
72
-
1. Activate react-grab (hold Meta), hover over the Todo List heading, click to select it, then press ArrowUp to navigate to parent — verify the properties panel appears showing size, font info, and class names.
84
+
1. Activate react-grab with Ctrl+C, hover over the Todo List heading, click to select it, then press ArrowUp to navigate to parent — verify the properties panel appears showing size, font info, and class names.
73
85
2. Select a button element (e.g. Submit button in the form section) — navigate with arrows and verify the panel shows the buttons role as button and keyboard-focusable as Yes.
74
86
3. Select a text element and check that color swatches appear next to Color and Background values.
75
87
4. Select a table cell and verify the accessibility section shows role cell.
0 commit comments