mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
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
14 lines
279 B
JavaScript
14 lines
279 B
JavaScript
const config = {
|
|
use: {
|
|
headless: true,
|
|
browserName: 'chromium',
|
|
launchOptions: {
|
|
// This bit of delay gives async React time to render
|
|
// and DevTools operations to be sent across the bridge.
|
|
slowMo: 100,
|
|
},
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|