Dmitry Gozman
e6c5b6054d
test: fix project filter test ( #32525 )
...
It was erroneously passing projects separate by comma, which never
worked.
2024-09-09 14:00:51 -07:00
Max Schmitt
e5d6ee5bd8
chore: merge fetch params on server side ( #32518 )
...
https://github.com/microsoft/playwright-python/pull/2546#discussion_r1750090592
2024-09-09 22:28:08 +02:00
Pavel Feldman
9a313eecc9
chore: roll expect and move it to third party ( #32458 )
2024-09-09 13:12:20 -07:00
Max Schmitt
4b5422a3c7
fix(ui-mode): use server side path separator ( #32523 )
...
Fixes https://github.com/microsoft/playwright/issues/32323
2024-09-09 22:07:28 +02:00
Playwright Service
363e79ee87
feat(webkit): roll to r2071 ( #32521 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-09 20:07:37 +02:00
Yury Semikhatsky
d030965688
chore: addInitScript and auth (unsuccessful) in bidi ( #32500 )
2024-09-09 10:13:26 -07:00
Max Schmitt
728083b435
chore: allow query as string in Python/.NET ( #32516 )
...
https://github.com/microsoft/playwright-python/issues/2497
2024-09-09 15:49:59 +02:00
Sander
4a53973fd0
docs(ct): vue + jsx and general improvements ( #32212 )
...
partial fix for:
https://github.com/microsoft/playwright/issues/31927#issuecomment-2267065378
---------
Signed-off-by: Sander <info@mesander.com>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-09-09 05:09:18 -07:00
Simon Knott
cc9c4cdd9a
chore: fix flaky screenshot test ( #32517 )
...
In this test, the trace recording goes super fast. Sometimes, this means
that the recording is finished before the screen recorder got a chance
to take a screenshot. If that happens, the tests fail because we never
show a screenshot.
This PR fixes the flakiness by delaying the trace recording so that
there's always a screenshot taken.
2024-09-09 14:00:38 +02:00
Simon Knott
31e269ad06
feat(trace-viewer): show screenshot pointer ( #32514 )
...
Follow-up to https://github.com/microsoft/playwright/pull/32248 . Adds a
glowing red circle that shows the click position. I made it glowing to
show that its position is inaccurate.
<img width="964" alt="Screenshot 2024-09-09 at 11 33 45"
src="https://github.com/user-attachments/assets/1903071d-6dc0-46c7-9951-844e49a51f35 ">
2024-09-09 14:00:22 +02:00
Max Schmitt
ae02331d00
test: fix stress tests bots ( #32513 )
2024-09-09 12:52:40 +02:00
Max Schmitt
718bd9b35f
devops: run BiDi tests ( #32493 )
2024-09-07 09:16:42 +02:00
Yury Semikhatsky
f3ada9c654
chore: wheel input in bidi ( #32499 )
2024-09-06 17:10:14 -07:00
Yury Semikhatsky
37bc485827
chore: remove browser-specific bidi hacks ( #32498 )
...
Those were just workarounds for browser-specific bugs, they should be
fixed upstream.
* individual mouse down/up/down/up events don't trigger dblclick event
in Firefox
* setContent throws when document.open/write is called in the utility
context in Firefox
2024-09-06 16:40:24 -07:00
Yury Semikhatsky
a113553f14
test: allow running oopif test without newBrowserCDPSession ( #32496 )
2024-09-06 13:49:37 -07:00
Yury Semikhatsky
df2bc2d0dc
test: worker interception for existing workers ( #32494 )
...
Failing test for https://github.com/microsoft/playwright/issues/32355
2024-09-06 13:17:49 -07:00
Yury Semikhatsky
11441c0fe1
fix: add missing await in adoptIfNeeded ( #32497 )
...
Otherwise it throws in Bidi.
2024-09-06 13:17:32 -07:00
Yury Semikhatsky
d85527e9f6
test: some tests for expected API behavior ( #32495 )
...
Adding some tests discussed in
https://github.com/microsoft/playwright/pull/32434
2024-09-06 13:13:44 -07:00
Dmitry Gozman
1402dee9e6
Revert "fix(test runner): align with typescript behaviour for resolving index.js
and package.json
through path mapping ( #32078 )" ( #32492 )
...
This reverts commit effb1ae2349aeef1c0bfb0b6cd886b9b4b32c8e5.
This broke path mapping into directories in ESM mode. References #32480 .
2024-09-06 12:08:10 -07:00
Simon Knott
3fe1263643
feat(trace viewer): show Screenshot instead of Snapshot ( #32248 )
...
Closes https://github.com/microsoft/playwright/issues/23964 .
Trace snapshots are a best-effort snapshots of the browser DOM, but we
can't guarantee them to be exactly what the browser showed. One example
of this is `canvas` elements, where you just can't see their contents.
That makes snapshots useful, but not perfect.
For those cases where the snapshot doesn't show everything, this PR
introduces a new setting to show a screenshot instead. You won't be able
to scroll or inspect the DOM or select a locator anymore. But if the
snapshot was missing something, or displaying something wrong, you can
now check the screenshot instead.
2024-09-06 16:24:33 +02:00
Max Schmitt
ed303208b3
test: update to android-35 SDK (Android 15) ( #32430 )
2024-09-06 14:27:56 +02:00
Simon Knott
0e3f4736cc
fix(test runner): always show all projects in selection ( #32450 )
...
Follow-up to
https://github.com/microsoft/playwright/pull/32156#discussion_r1741628770 ,
alternative solution to
https://github.com/microsoft/playwright/pull/32425 .
Ensures we always show all projects in the watch mode project selector
by performing the initial `listTests` without any filters, and using its
result for the project selector.
2024-09-06 11:35:20 +02:00
Max Schmitt
a8f67a42b8
docs(dotnet): fix wrong snippets ( #32484 )
...
Fixes https://github.com/microsoft/playwright-dotnet/issues/2994
2024-09-06 11:27:35 +02:00
Simon Knott
5d4a65b318
docs: update release notes for 1.47 to our changes from yesterday ( #32482 )
...
I'll also cherry-pick this into the release branch and update
playwright.dev.
2024-09-06 10:28:17 +02:00
Pavel Feldman
a52eb0c9a0
chore: expose matcherResult on TestError ( #32455 )
2024-09-05 21:36:51 -07:00
Pavel Feldman
16cef9901d
chrome: cache tsconfig for folder ( #32477 )
...
Fixes https://github.com/microsoft/playwright/issues/32459
2024-09-05 21:36:13 -07:00
Yury Semikhatsky
f0e13164d7
chore: split firefox and chromium bidi implementations ( #32478 )
2024-09-05 18:31:56 -07:00
Yury Semikhatsky
752b171a13
chore: support bidi connection to chromium ( #32474 )
2024-09-05 14:56:07 -07:00
Yury Semikhatsky
1989589edd
docs: update browsers version in release notes ( #32475 )
2024-09-05 13:59:54 -07:00
Dmitry Gozman
1ba3db6864
chore: implement clear-cache through plugins ( #32471 )
...
Also switches it to task runner.
2024-09-05 13:50:16 -07:00
Dmitry Gozman
d4c77ce260
chore: make find-related-test-files work through plugins ( #32465 )
...
Also switches it to the task runner.
2024-09-05 06:52:11 -07:00
Playwright Service
5127efdc2a
feat(chromium): roll to r1134 ( #32470 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-05 14:57:20 +02:00
Simon Knott
895d017fb8
chore: update browser patches as of July, 25th, 2024 ( #32468 )
2024-09-05 13:44:58 +02:00
Simon Knott
29f1541b14
chore: roll stable test runner to 1.47 beta ( #32469 )
2024-09-05 13:44:22 +02:00
Simon Knott
0f636116e2
chore: mark 1.48.0-next ( #32466 )
2024-09-05 12:57:16 +02:00
Simon Knott
0a49c05e2d
chore(test runner): document that --only-changed on CI needs history ( #32461 )
...
Closes https://github.com/microsoft/playwright/issues/32452
`--only-changed=$GITHUB_BASE_REF` needs the base ref available locally
to work properly. `fetch-depth: 0` does that, see
https://github.com/actions/checkout?tab=readme-ov-file#fetch-all-history-for-all-tags-and-branches .
---------
Signed-off-by: Simon Knott <info@simonknott.de>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-09-05 12:13:09 +02:00
Simon Knott
a8139b5d77
docs: add release notes for 1.47 ( #32463 )
2024-09-05 11:57:14 +02:00
Dmitry Gozman
91012833c6
chore: move 'dev-server' extensibility point to plugin ( #32448 )
...
Instead of plumbing it through a custom unspecified config field, make
it a part of plugin interface.
Additionally, use task runner for starting/stopping dev server.
2024-09-05 02:22:27 -07:00
Playwright Service
255143e201
feat(webkit): roll to r2070 ( #32451 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-04 20:41:06 +02:00
Yury Semikhatsky
9a2c60a77c
chore: identify largest gaps in Bidi API ( #32434 )
...
This pull request introduces initial support for the WebDriver BiDi
protocol in Playwright. The primary goal of this PR is not to fully
implement BiDi but to experiment with the current state of the
specification and its implementation. We aim to identify the biggest
gaps and challenges that need to be addressed before considering BiDi as
the main protocol for Playwright.
2024-09-04 11:36:52 -07:00
Pavel Feldman
a87426ee0d
Update bug.yml
...
Signed-off-by: Pavel Feldman <pavel.feldman@gmail.com>
2024-09-04 09:17:43 -07:00
Kuba Janik
ee91bdc585
feat(ui-mode): display list of query params in request tab ( #32443 )
2024-09-04 07:54:44 -07:00
dependabot[bot]
b43915f4cc
chore(deps): bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows ( #32436 )
2024-09-04 13:05:51 +02:00
Dmitry Gozman
60631409d6
chore: make dev server only use public config ( #32441 )
...
In preparation to make it a part of a plugin.
2024-09-04 01:29:55 -07:00
Dmitry Gozman
d7393f998e
chore: simplify settings management in UI mode ( #32440 )
2024-09-04 01:05:07 -07:00
Simon Knott
b3d767fa14
fix(trace viewer): fix memory leak ( #32379 )
...
In the `visit` method, we currently cache the rendered HTML for every
walked node. This re-use works well for traces that consist mostly of
references to earlier snapshots.
But for traces that don't share much, this is a large memory overhead
and leads to the memory crash documented in
https://github.com/microsoft/playwright/issues/32336 . For the algocracks
amongst you, the current memory usage for an html tree $h$ is
$\mathcal{O}(|h| * \text{height}(h))$.
This PR removes that cache from the nodes and replaces it with a
snapshot-level cache, fixing the memory crash.
Traces *without* reference should not see a performance impact from
this.
Traces *with* references will have slower initial rendering, but
re-rendering maintains speed because of the snapshot-level cache.
Closes https://github.com/microsoft/playwright/issues/32336
---------
Signed-off-by: Simon Knott <info@simonknott.de>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2024-09-04 09:57:15 +02:00
Playwright Service
2fabd15fef
feat(firefox): roll to r1463 ( #32439 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-04 08:49:10 +02:00
Yury Semikhatsky
d7b9cf21db
chore: ignore third-party execution contexts ( #32437 )
...
* Only track main and utility world contexts
* Properly update click metadata
2024-09-03 23:00:59 -07:00
Dmitry Gozman
cfae7f755c
chore(test runner): always go through internal reporter ( #32426 )
...
This way we guarantee the API contract and do not miss errors because we
forgot to call `onBegin()`.
2024-09-03 22:38:02 -07:00
Pavel Feldman
446ed72878
docs: revert typo ( #32433 )
2024-09-03 10:18:40 -07:00