playwright/tests/assets/reading-list
João Neves 7e6e5f0706
feat: Support React forwards refs and memo (#23262)
This PR fixes the react selector behavior to support components that are
wrapped by the memo or forwardRef React builtin functions.

Previously these components couldn't be selected. This PR fixes that
behavior, enabling selecting those components.

Current behavior:
```
const Foo = memo(() => <div id="foo_component" />);
Foo.displayName = "Foo";
...
playwright.$("_react=Foo") -> undefined
```

Fixed behavior:
```
const Foo = memo(() => <div id="foo_component" />);
Foo.displayName = "Foo";
...
playwright.$("_react=Foo") -> <div id ="foo_component" />
```
2023-05-30 17:14:47 -07:00
..
react-dom_15.7.0.js
react-dom_16.14.0.js
react-dom_17.0.2.js
react-dom_18.1.0.js
react15.html
react16.html
react17.html feat: Support React forwards refs and memo (#23262) 2023-05-30 17:14:47 -07:00
react18.html feat: Support React forwards refs and memo (#23262) 2023-05-30 17:14:47 -07:00
react_15.7.0.js
react_16.14.0.js
react_17.0.2.js
react_18.1.0.js
style.css
vue2.html
vue3.html
vue_2.6.14.js
vue_3.1.5.js