playwright/packages/playwright-core
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
..
bin chore(docker): remove experimental docker integration (#20676) 2023-02-06 10:50:45 -08:00
bundles chore: fix build/watch script for bundles and vite-powered packages (#20055) 2023-01-11 18:36:04 -08:00
src feat: Support React forwards refs and memo (#23262) 2023-05-30 17:14:47 -07:00
types feat(screenshot): Add customizable color option for masked elements (#23185) 2023-05-22 18:44:44 -07:00
.eslintrc.js lint: prevent object string concatenation (#23172) 2023-05-19 15:17:43 -07:00
.npmignore chore: remove experimental dockerfile.remote (#20790) 2023-02-09 12:18:02 -08:00
browsers.json feat(webkit): roll to r1857 (#23353) 2023-05-29 22:56:38 +02:00
cli.js chore: fix playwright-core cli (#23203) 2023-05-22 12:37:08 -07:00
index.d.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
index.js chore: sunset Node.js 12 (#16512) 2022-08-15 18:10:04 +02:00
index.mjs fix: export request from index.jsm (#13158) 2022-03-30 09:35:47 -07:00
package.json chore: move to npx playwright-core install when using core (#23260) 2023-05-24 12:16:59 -07:00
README.md chore: drop dependency on playwright-core in all our packages (#2318) 2020-05-21 13:18:15 -07:00
ThirdPartyNotices.txt chore: vendor proper-lockfile dependency (#19969) 2023-01-09 17:13:58 -08:00

playwright-core

This package contains the no-browser flavor of Playwright.