playwright/packages/playwright-core/src/server
Dmitry Gozman 773202867d
feat(trace): highlight strict mode violation elements in the snapshot (#32893)
This is fixing a case where the test failed with strict mode violation,
but all the matched elements are not highlighted in the trace.

For example, all the buttons will be highlighted when the following line
fails due to strict mode violation:
```ts
await page.locator('button').click();
```

To achieve this, we mark elements during `querySelector` phase instead
of inside `onBeforeInputAction`. This allows us to only mark from inside
the `InjectedScript` and remove the other way of marking from inside the
`Snapshotter`.
2024-10-02 00:00:45 -07:00
..
android chore: introduce option overrides on context/browser (#32606) 2024-09-13 17:34:34 +02:00
bidi feat(trace): highlight strict mode violation elements in the snapshot (#32893) 2024-10-02 00:00:45 -07:00
chromium feat(trace): highlight strict mode violation elements in the snapshot (#32893) 2024-10-02 00:00:45 -07:00
codegen chore: move actions types to recorder (#32839) 2024-09-26 14:50:09 -07:00
dispatchers feat(routeWebSocket): address api review feedback (#32850) 2024-09-27 04:01:31 -07:00
electron chore: introduce option overrides on context/browser (#32606) 2024-09-13 17:34:34 +02:00
firefox feat(trace): highlight strict mode violation elements in the snapshot (#32893) 2024-10-02 00:00:45 -07:00
har feat(har): record serverIPAddress for API requests (#32660) 2024-09-18 14:51:42 +02:00
injected feat(routeWebSocket): address api review feedback (#32850) 2024-09-27 04:01:31 -07:00
isomorphic chore: make sure error stack includes message as before #31691 (#31934) 2024-07-31 10:58:37 -07:00
recorder chore: unflake 'should record' (#32880) 2024-09-30 20:32:04 +02:00
registry feat(webkit): roll to r2083 (#32813) 2024-09-26 21:49:02 +02:00
trace feat(trace): highlight strict mode violation elements in the snapshot (#32893) 2024-10-02 00:00:45 -07:00
webkit feat(trace): highlight strict mode violation elements in the snapshot (#32893) 2024-10-02 00:00:45 -07:00
accessibility.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
artifact.ts chore: split error to client and server sides (#27672) 2023-10-17 21:34:02 -07:00
browser.ts feat(client-certificates): add support for proxies (#32611) 2024-09-16 17:57:33 +02:00
browserContext.ts feat: do not record route calls in the trace (#32723) 2024-09-21 10:17:59 -07:00
browserType.ts chore(bidi): launch firefox with user prefs tailored for testing (#32817) 2024-09-25 18:17:07 -07:00
clock.ts chore: introduce helpers for non-stalling eval on page/context (#31658) 2024-07-12 02:26:16 -07:00
console.ts feat(electron): expose ElectronApplication console events (#29322) 2024-02-05 21:30:54 +01:00
cookieStore.ts chore: cookies in intercepted bidi requests (#32623) 2024-09-13 18:29:35 -07:00
debugController.ts chore: allow starting recorder in traceviewer (#32741) 2024-09-20 15:25:49 -07:00
debugger.ts fix(pause): ignore page.pause on the server (#23417) 2023-06-02 08:32:30 -07:00
DEPS.list chore: identify largest gaps in Bidi API (#32434) 2024-09-04 11:36:52 -07:00
deviceDescriptors.ts chore: make NodeSnapshot type recursive and more (#30619) 2024-05-08 11:08:40 -07:00
deviceDescriptorsSource.json feat(chromium): roll to r1137 (#32827) 2024-09-26 13:58:55 +02:00
dialog.ts chore: iterate towards recording into trace (3) (#32718) 2024-09-20 13:08:33 -07:00
dom.ts feat(trace): highlight strict mode violation elements in the snapshot (#32893) 2024-10-02 00:00:45 -07:00
download.ts chore: iterate towards recording into trace (3) (#32718) 2024-09-20 13:08:33 -07:00
errors.ts chore: split error to client and server sides (#27672) 2023-10-17 21:34:02 -07:00
fetch.ts fix(fetch): fallback to given URL if baseURL is invalid (#32911) 2024-10-01 22:43:32 +02:00
fileChooser.ts chore: always import type (#13365) 2022-04-06 14:57:14 -07:00
fileUploadUtils.ts feat: allow folder uploads (#31165) 2024-06-12 22:20:18 +02:00
formData.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
frames.ts feat(trace): highlight strict mode violation elements in the snapshot (#32893) 2024-10-02 00:00:45 -07:00
frameSelectors.ts fix: add missing await in adoptIfNeeded (#32497) 2024-09-06 13:17:32 -07:00
helper.ts fix(connect): include websocket close reason in the error message (#30203) 2024-04-01 21:05:33 -07:00
index.ts chore: prepare to reuse test server from ui mode (#29965) 2024-03-18 09:50:11 -07:00
input.ts chore: remove browser-specific bidi hacks (#32498) 2024-09-06 16:40:24 -07:00
instrumentation.ts feat(trace): highlight strict mode violation elements in the snapshot (#32893) 2024-10-02 00:00:45 -07:00
javascript.ts feat(trace): highlight strict mode violation elements in the snapshot (#32893) 2024-10-02 00:00:45 -07:00
launchApp.ts chore: prefer executablePath for page.pause() (#31985) 2024-08-02 11:18:51 +02:00
macEditingCommands.ts feat(keyboard): support simple cut-pasting using meta+x/v (#18756) 2022-11-29 12:58:14 -08:00
network.ts chore: identify largest gaps in Bidi API (#32434) 2024-09-04 11:36:52 -07:00
page.ts chore: address api review for page.forceGarbageCollection (#32824) 2024-09-26 05:08:33 -07:00
pipeTransport.ts fix(connect): include websocket close reason in the error message (#30203) 2024-04-01 21:05:33 -07:00
playwright.ts chore: split firefox and chromium bidi implementations (#32478) 2024-09-05 18:31:56 -07:00
progress.ts feat(trace): highlight strict mode violation elements in the snapshot (#32893) 2024-10-02 00:00:45 -07:00
protocolError.ts chore: push protocol error conversion to dispatcher (#27608) 2023-10-16 13:13:00 -07:00
recorder.ts chore: update trace event on action merge (#32860) 2024-09-27 21:18:30 -07:00
screenshotter.ts chore: introduce helpers for non-stalling eval on page/context (#31658) 2024-07-12 02:26:16 -07:00
selectors.ts fix(locator): locator(locator) method uses internal:chain instead of >> (#24235) 2023-07-14 12:21:45 -07:00
socksClientCertificatesInterceptor.ts test: fix test expecations after Node.js 22.9.0 (#32695) 2024-09-19 10:52:29 +02:00
socksInterceptor.ts chore: fix all Proxy() to account for symbol properties (#21272) 2023-02-28 12:45:14 -08:00
transport.ts fix(connect): include websocket close reason in the error message (#30203) 2024-04-01 21:05:33 -07:00
types.ts chore: introduce option overrides on context/browser (#32606) 2024-09-13 17:34:34 +02:00
usKeyboardLayout.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00