playwright/packages/playwright-core/src
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
..
cli chore: allow sending trace URLs over stdin (#23288) 2023-05-25 15:38:47 -07:00
client fix: should be able to upload multiple large files (#23360) 2023-05-30 18:41:09 +02:00
common feat(connect): pw:server:channel and pw:socks debug logs (#23144) 2023-05-18 13:44:48 -07:00
image_tools test: enable ssim-cie94 image comparison algorithm for our tests (#19313) 2022-12-29 23:48:28 -08:00
protocol feat(screenshot): Add customizable color option for masked elements (#23185) 2023-05-22 18:44:44 -07:00
remote chore: have type modifiers directly on file import (#23337) 2023-05-30 21:11:35 +02:00
server feat: Support React forwards refs and memo (#23262) 2023-05-30 17:14:47 -07:00
third_party chore: remove experimental dockerfile.remote (#20790) 2023-02-09 12:18:02 -08:00
utils chore: replace sigint handler per browser with a single one (#23317) 2023-05-30 13:54:04 -07:00
androidServerImpl.ts chore: explicit server mode control (#23215) 2023-05-23 10:56:37 -07:00
browserServerImpl.ts chore: explicit server mode control (#23215) 2023-05-23 10:56:37 -07:00
DEPS.list feat(android): add Android.{launchServer,connect} (#18263) 2022-10-24 17:23:11 -07:00
inprocess.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
inProcessFactory.ts chore: move sever/isomorphic to utils/ to use it in client (#21445) 2023-03-06 18:49:14 -08:00
outofprocess.ts fix(tracing): when zipping remotely, use correct file name (#23171) 2023-05-19 14:42:01 -07:00
utilsBundle.ts chore: migrate to protocol's StackFrame type (#21198) 2023-02-24 18:36:15 -08:00
zipBundle.ts chore(har): allow replaying from zip har (#14962) 2022-06-17 16:11:22 -07:00