react/packages/react-devtools-shell
Brian Vaughn a4ead704ba
Use ReactDOM Test Selector API in DevTools e2e tests (#22978)
Builds on top of the existing Playwright tests to plug in the test selector API: https://gist.github.com/bvaughn/d3c8b8842faf2ac2439bb11773a19cec

My goals in doing this are to...
1. Experiment with the new API to see what works and what doesn't.
2. Add some test selector attributes (and remove DOM-structure based selectors).
3. Focus the tests on DevTools itself (rather than the test app).

I also took this opportunity to add a few new test cases– like named hooks, editable props, component search, and profiling- just to play around more with the Playwright API.

Relates to issue #22646
2021-12-21 11:58:04 -05:00
..
src Use ReactDOM Test Selector API in DevTools e2e tests (#22978) 2021-12-21 11:58:04 -05:00
README.md Updated scripts and config to replace "master" with "main" branch (#21768) 2021-06-29 14:26:24 -04:00
e2e.html Refactored DevTools test shell for e2e (#22968) 2021-12-15 11:42:59 -05:00
index.html Refactored DevTools test shell for e2e (#22968) 2021-12-15 11:42:59 -05:00
multi.html DevTools: Support mulitple DevTools instances per page (#22949) 2021-12-14 12:16:16 -05:00
package.json Refactored DevTools test shell for e2e (#22968) 2021-12-15 11:42:59 -05:00
webpack.config.js Refactored DevTools test shell for e2e (#22968) 2021-12-15 11:42:59 -05:00

README.md

Harness for testing local changes to the react-devtools-inline and react-devtools-shared packages.

Development

This target should be run in parallel with the react-devtools-inline package. The first step then is to run that target following the instructions in the react-devtools-inline README.

The test harness can then be run as follows:

cd packages/react-devtools-shell

yarn start