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
Yury Semikhatsky
1989589edd
docs: update browsers version in release notes ( #32475 )
2024-09-05 13:59:54 -07: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
Pavel Feldman
446ed72878
docs: revert typo ( #32433 )
2024-09-03 10:18:40 -07:00
Yury Semikhatsky
b75483bbb4
Revert "docs: deprecate: Request.serviceWorker() ( #32136 )" ( #32432 )
...
This reverts commit b7ed4d7b9e433f1be414c6e580a0ddc39de71618.
2024-09-03 10:18:20 -07:00
Przemyslaw Malolepszy
b8c4a477ff
chore(docs): fix APIResponse.headersArray() desc ( #32375 )
2024-09-03 09:01:01 +02:00
Kevin Jagodic
787da9b5a5
docs(mock): fix routeFromHAR() arguments for Java ( #32409 )
2024-09-03 08:57:57 +02:00
Simon Knott
0a40862bc8
chore(docs): fix typo ( #32372 )
2024-08-29 14:16:29 -07:00
Yury Semikhatsky
896190edbb
Revert feat(addInitScript): support cjs modules ( #32364 )
...
Reverting https://github.com/microsoft/playwright/pull/32282 and
https://github.com/microsoft/playwright/pull/32240 .
2024-08-28 15:39:48 -07:00
Yury Semikhatsky
d8137f228f
docs: update snippets to fix typescript errors ( #32363 )
...
Reference: https://github.com/microsoft/playwright/issues/9468
2024-08-28 14:24:01 -07:00
Yury Semikhatsky
acd2a4ddad
docs: global beforeEach/beforeAll hooks ( #32348 )
...
Fixes https://github.com/microsoft/playwright/issues/9468
2024-08-27 17:04:53 -07:00
Yury Semikhatsky
888a5b53e7
docs: avoid confustion with incognito mode ( #32327 )
...
Fixes https://github.com/microsoft/playwright/issues/32321
2024-08-26 11:02:41 -07:00
Pavel Feldman
4340d153df
chore: deprecate locator.frameLocator() ( #32306 )
2024-08-26 10:28:54 -07:00
Pavel Feldman
3d9342aa77
chore: update removeAllListeners docs ( #32305 )
...
Closes https://github.com/microsoft/playwright/issues/31474
2024-08-26 09:29:02 -07:00
Dmitry Gozman
abe6c04a54
chore: remove noWaitAfter
from selectOption ( #32283 )
...
This follows removing this option from other methods in v1.46. The two
methods still supporting `noWaitAfter` are `click` and `press`.
2024-08-23 14:50:43 -07:00
Max Schmitt
787f20c920
chore: fix doclint ( #32294 )
2024-08-23 16:26:39 +02:00
Max Schmitt
1b220c5289
chore: remove Chromium Windows proxy hacks ( #31724 )
...
Fixes https://github.com/microsoft/playwright/issues/17252
2024-08-23 15:17:00 +02:00
Dmitry Gozman
3a75f23ea1
fix(addInitScript): require non-undefined arg to trigger commonjs module ( #32282 )
2024-08-23 02:48:56 -07:00
Dmitry Gozman
dc4a8e48eb
docs(fixtures): explain an option array value edge case ( #32261 )
...
Closes #32033 .
2024-08-22 05:47:19 -07:00
Dmitry Gozman
d5a7495041
feat(addInitScript): support cjs modules when passing both path
and arg
( #32240 )
...
This works with scripts bundled by:
- `esbuild entrypoint.ts --bundle --format=cjs --outfile=injected.js`
- webpack with a typical config
```js
module.exports = {
entry: { 'injected': './entrypoint.js', },
output: {
path: require('path').resolve(__dirname),
filename: '[name].js',
libraryTarget: 'commonjs2',
},
};
```
2024-08-21 09:46:38 -07:00
Guillaume M
837e2a883b
docs(browsers): fix typo ( #32250 )
2024-08-21 17:35:47 +02:00
Max Schmitt
6512bccffd
docs(best-practises): add note about tsc ( #32245 )
2024-08-21 11:37:53 +02:00
Dmitry Gozman
b66cb6caaa
docs(evaluate): improve the guide ( #32222 )
2024-08-21 01:31:41 -07:00
Simon Knott
244761a3a2
chore(docs): Rework CI docs ( #31988 )
...
This PR moves around some of our CI docs. It moves the GitHub actions
docs from `ci-intro.md` to `ci.md`, reduces `ci-intro.md` to be an
introduction, adds a mention of Sharding to the best practices, and adds
a section on `--only-changed` called "Fail-Fast". Each of those changes
is a separate commit, to make this a little easier to review. If we find
any of those to commits to be contentious, i'll pull them out into
individual PRs.
While rolling this to playwright.dev, we'll also make the following
changes to its sidebar:
- move the `ci.md` document from the "Integrations" section to the
"Playwright Test" section
- make "Best Practices" the last item of the "Getting Started" section
---------
Signed-off-by: Simon Knott <info@simonknott.de>
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
2024-08-20 09:03:02 +02:00
Max Schmitt
010778f6c5
feat(client-certificates): allow passing certificates from memory ( #32210 )
2024-08-19 09:24:32 +02:00
Debbie O'Brien
f927495791
docs: release video and trace viewer video ( #32164 )
2024-08-14 23:20:19 +02:00
Bryant Ung
3280ec5ee3
doc(release notes): Fix 1.46 release notes typos ( #32145 )
2024-08-13 15:24:47 -07:00
Kuba Janik
0588834307
feat: allow URLSearchParams
and string
as params in APIRequestContext
(follow-up) ( #32143 )
...
Follow-up to https://github.com/microsoft/playwright/pull/32120
I made some changes suggested by @yury-s in the previous PR that make a
lot of sense:
- added an example to the documentation
- improved tests
- check params on the client and server end
- reverted to non-English characters being used as params
2024-08-13 10:39:56 -07:00
Max Schmitt
b7ed4d7b9e
docs: deprecate: Request.serviceWorker() ( #32136 )
2024-08-13 15:59:30 +02:00
Kuba Janik
308381eeae
feat: allow URLSearchParams
and string
as params in APIRequestContext
( #32120 )
2024-08-12 14:22:03 -07:00
Yury Semikhatsky
2ae196f708
fix(docs): API types do not extend EventEmitter ( #32124 )
...
Fixes https://github.com/microsoft/playwright/issues/32097
2024-08-12 11:22:48 -07:00
Max Schmitt
cae779b74f
docs: recommend Ubuntu 24.04 in Docker images ( #31435 )
2024-08-12 16:39:56 +02:00
Max Schmitt
98a6e14e9d
docs: remove redundant TOC usages ( #32096 )
2024-08-09 12:44:01 +02:00
Yury Semikhatsky
7f60f284c6
docs(auth): use abs path, difference between storage locations ( #32037 )
...
Reference: https://github.com/microsoft/playwright/issues/31987
2024-08-06 11:36:49 -07:00
Yury Semikhatsky
43e852334b
docs: route.fallback() vs. route.continue() ( #32035 )
...
Fixes https://github.com/microsoft/playwright/issues/31983
2024-08-06 11:35:53 -07:00
Dmitry Gozman
a54ed48b42
feat(test runner): --tsconfig
cli option ( #31932 )
...
Introduce `--tsconfig` to specify a single config to be used for all
imported files, instead of looking up tsconfig for each file separately.
Fixes #12829 .
2024-08-06 06:55:15 -07:00
Meir Blachman
5a015b0d6e
docs(release-notes): fix typo in .NET release notes ( #32015 )
2024-08-06 07:19:55 +02:00
Pavel Feldman
3c87f217df
feat(events): allow waiting for removeAllListeners ( #31941 )
2024-08-05 21:14:35 -07:00
Yury Semikhatsky
193013c9ee
docs(har): default update mode is minimal ( #32016 )
...
Update the documentation to match actual behavior.
The actual behavior today:
* Default mode is `full` when `recordHar` is passed to
`browser.newContext`
* Default mode is `minimal` when calling `context.routeFromHAR` and
`page.routeFromHAR`
Reference https://github.com/microsoft/playwright/issues/31983
2024-08-05 11:29:43 -07:00
Dmitry Gozman
32ee09dbe6
docs: release notes for 1.46 update ( #32010 )
2024-08-05 05:35:46 -07:00
Max Schmitt
d0c840f639
fix(clock): mock time in Event.prototype.timeStamp ( #31986 )
...
Ideally we generate the timestamp when the Event gets created. This
patch adds a best-effort logic, since we can't override the constructor
of natively created events, e.g. `MouseEvent`.
Fixes https://github.com/microsoft/playwright/issues/31924
2024-08-02 15:27:54 +02:00
Sander
c9a12e4ca1
docs(ct): fix component.update example for vue and svelte ( #31889 )
2024-07-31 13:40:19 +02:00
Max Schmitt
55187207e4
chore: various roll fixes for .NET ( #31914 )
2024-07-30 19:09:20 +02:00
Max Schmitt
ac0a3fb275
docs(best-practises): make trace icon location more clear ( #31909 )
2024-07-30 11:19:07 +02:00
Max Schmitt
f45cf65921
chore: add maxRetries to APIRequestContext.delete ( #31893 )
2024-07-29 14:39:30 +02:00
Max Schmitt
57c7d9e9bb
docs: add release notes for 1.46 ( #31875 )
...
Signed-off-by: Max Schmitt <max@schmitt.mx>
Signed-off-by: Dmitry Gozman <dgozman@gmail.com>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-07-26 08:34:26 -07:00
Dmitry Gozman
9227d1c598
docs: explain a bit more about fixture boxing and custom titles ( #31877 )
2024-07-26 07:43:58 -07:00