playwright/packages
Dmitry Gozman 97d55e275d
fix(locator): locator(locator) method uses internal:chain instead of >> (#24235)
Usually, we can just chain two locators with `>>` to implement
`Locator.locator(locator)`. However, this does not play nicely with more
advanced inner locators like `or` and `and`:

```ts
const child = page.locator('input').or(page.locator('button'));
page.locator('parent').locator(child);
```

One would expect the above to locate "input or button" inside a
"parent". However, currently it locates "input inside a parent" or
"button", because it's translated to `parent >> input >>
internal:or="button"`.

To fix this, we have to wrap inner locator into `internal:chain` and
query it separately from the parent.

Fixes #23724.
2023-07-14 12:21:45 -07:00
..
html-reporter chore: ensure module deps in ct-core (#24056) 2023-07-06 12:01:45 -07:00
playwright chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -07:00
playwright-chromium chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -07:00
playwright-core fix(locator): locator(locator) method uses internal:chain instead of >> (#24235) 2023-07-14 12:21:45 -07:00
playwright-ct-core chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -07:00
playwright-ct-react chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -07:00
playwright-ct-react17 chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -07:00
playwright-ct-solid chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -07:00
playwright-ct-svelte chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -07:00
playwright-ct-vue chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -07:00
playwright-ct-vue2 chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -07:00
playwright-firefox chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -07:00
playwright-test chore: resolve top-level vs dependency after cli filtering (#24216) 2023-07-13 17:54:08 -07:00
playwright-webkit chore: cut 1.36.0 (#24104) 2023-07-07 13:01:17 -07:00
protocol/src feat(electron): support tracesDir option (#23947) 2023-06-28 16:32:16 -07:00
recorder feat(ui): render all console / network messages in trace (#24115) 2023-07-10 12:56:56 -07:00
trace/src feat(trace): render Node console messages in trace (#24139) 2023-07-10 18:36:28 -07:00
trace-viewer chore: resolve top-level vs dependency after cli filtering (#24216) 2023-07-13 17:54:08 -07:00
web fix(ui): bump min sidebar size (#24193) 2023-07-13 15:14:49 -07:00
.eslintrc-with-ts-config.js lint: prevent object string concatenation (#23172) 2023-05-19 15:17:43 -07:00
.eslintrc.js lint: prevent object string concatenation (#23172) 2023-05-19 15:17:43 -07:00