Playwright Service
8703dd4f06
feat(webkit): roll to r2063 ( #32295 )
2024-08-23 17:57:18 +02:00
Max Schmitt
0d4d5758c4
test: update Modernizer tests to Safari 18 ( #32290 )
...
Fixes https://github.com/microsoft/playwright/issues/32288
---------
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-08-23 16:59:55 +02: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
9a5b72d02a
chore: remove TestInfoImpl._stages
( #32285 )
...
This is a preparation to a bigger stages cleanup.
2024-08-23 06:16:18 -07:00
Simon Knott
3fb33e7144
chore(ui): decouple TestServerConnection from websocket transport ( #32274 )
...
Preparation for https://github.com/microsoft/playwright/issues/32076 .
2024-08-23 14:58:34 +02:00
Dmitry Gozman
785ca19e51
fix(webserver): prefix each line of webserver output ( #32286 )
...
This unflakes various `web-server.spec.ts` tests and makes the output
more consistent.
2024-08-23 03:52:27 -07:00
Max Schmitt
8c0e173d6c
test: rebase modernizer Linux tests ( #32268 )
2024-08-23 12:51:49 +02:00
Dmitry Gozman
3a75f23ea1
fix(addInitScript): require non-undefined arg to trigger commonjs module ( #32282 )
2024-08-23 02:48:56 -07:00
Simon Knott
0b9c036505
chore(ui): add test for font preview ( #32225 )
...
Adds a test for the font preview feature.
2024-08-22 17:56:07 +02:00
Playwright Service
947fbc8590
feat(chromium-tip-of-tree): roll to r1253 ( #32266 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-22 17:43:39 +02:00
Simon Knott
850436c656
chore(ui): move TeleSuiteUpdater into testIsomorphic ( #32273 )
...
Preparation for https://github.com/microsoft/playwright/issues/32076 .
2024-08-22 17:29:10 +02:00
Max Schmitt
16e76cb71a
fix(client-certificates): errors during http2 TLS handshake ( #32258 )
2024-08-22 15:13:54 +02:00
Simon Knott
5368fd7ca7
fix(only-changed): exit successfully if there were no changes ( #32197 )
...
Closes https://github.com/microsoft/playwright/issues/32180
I was briefly wondering if we should output a log line a la "no tests
found", but my understanding is that that's the reporters job - so I
didn't change anything in that regard.
2024-08-22 14:53:00 +02:00
Dmitry Gozman
7758b330b1
fix(ui mode): make sure that reload does correctly restart the webserver ( #32263 )
...
Fixes #32103 .
2024-08-22 05:48:31 -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
Playwright Service
f74c6d77db
chore(driver): roll driver to recent Node.js LTS version ( #32264 )
2024-08-22 12:07:44 +02:00
Max Schmitt
666a8f22cf
chore: fix api.json serializer for language ports ( #32260 )
...
Fixes https://github.com/microsoft/playwright/issues/32241
2024-08-22 10:15:47 +02:00
Max Schmitt
e3480d1886
test: add test for TLS renegotiation and client-certificates ( #32252 )
2024-08-22 08:42:09 +02:00
Dmitry Gozman
571f25a7d3
fix(role): hidden pseudos should not contribute to accessible name ( #32251 )
2024-08-21 11:14:41 -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
Yury Semikhatsky
918dbe5e3a
chore: start listening for navigation events before navigation starts ( #32237 )
...
There is a chance in case of cross-process navigation that the
navigation event comes before `navigateFrame` finishes.
2024-08-21 08:34:55 -07: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
Pavel Feldman
109cab66f1
chore: extract recorder dialog into a class ( #32233 )
2024-08-20 10:56:55 -07:00
Pavel Feldman
fc4d8f2bb6
chore: roll codicon ( #32234 )
2024-08-20 10:56:46 -07:00
Dmitry Gozman
b4a9b247b4
fix(role): make sure to ignore style/script/noscript/template ( #32231 )
...
Even when these are a part of a hidden `aria-labelledby` traversal, all
browsers ignore them anyway.
2024-08-20 09:02:23 -07:00
Simon Knott
b599335404
chore(ui): enable react/recommended
lint rules ( #32214 )
...
Closes https://github.com/microsoft/playwright/issues/32159 . I
originally set out to enable Strict Mode for our React UI, but found a
way better thing: Enabling the lint rules we had already installed!
`eslint-plugin-react` is already in of our `package.json`, and this PR
enables it and fixes some of the reported issues. Most of them are
around the `key` prop which is mostly about performance, but there's
also fixes for misspelled `data-testid` props.
2024-08-20 14:16:28 +02: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
Kuba Janik
f7e0bd3098
feat(ui-mode): add font preview to network tab ( #32209 )
...
Resolves https://github.com/microsoft/playwright/issues/32218
Currently, fonts are displayed as a raw binary file which does not give
any information to the users.
I replaced it with a simple font preview similar to the one found in the
dev tools of web browsers.
It is not a major feature but I think it is a nice addition and it might
be useful to somebody.
<img width="1043" alt="Screenshot 2024-08-17 at 18 33 46"
src="https://github.com/user-attachments/assets/a6cc7b57-7ea8-4a54-869d-57a44712597b ">
https://github.com/user-attachments/assets/e52d9a72-fb2c-43c7-bfee-3d6d6edc6b6a
2024-08-20 08:28:02 +02:00
Dmitry Gozman
5271c26af1
fix(trace viewer): do not serve resources with x-unknown content type ( #32219 )
...
`x-unknown` is used as a placeholder for "no content-type" in the har.
We should not send it to the browser, because it is meaningfully
different from not sending `Content-Type` header. For example, Chromium
refuses to interpret stylesheets served with `x-unknown` content type.
Fixes https://github.com/microsoft/playwright-java/issues/1651 .
2024-08-19 10:29:51 -07:00
Playwright Service
18694f6843
feat(webkit): roll to r2062 ( #32147 )
2024-08-19 19:29:23 +02:00
Sander
c87ca052d1
fix(ct): vue jsx component.update type ( #32213 )
...
partial fix for:
https://github.com/microsoft/playwright/issues/31927#issuecomment-2267065378
The options object wasn't treated as partial, unlike in other
frameworks, which led to the `component.update({ props: {} })` type
being selected instead the `component.update(<Component prop={} />)`
during jsx usage.
2024-08-19 05:50:25 -07:00
Max Schmitt
010778f6c5
feat(client-certificates): allow passing certificates from memory ( #32210 )
2024-08-19 09:24:32 +02:00
Max Schmitt
74f5ce5489
docs: store parent type reference in documentation.js ( #32215 )
2024-08-19 09:11:20 +02:00
Max Schmitt
faf4853259
chore: validate client-certificates on context creation ( #32168 )
2024-08-19 09:02:14 +02:00
Playwright Service
570e05699e
feat(chromium-tip-of-tree): roll to r1250 ( #32202 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-17 10:56:18 +02:00
Max Schmitt
743565ee3e
chore: generate self-signed certificates for socks proxy ( #32192 )
2024-08-16 20:21:05 +02:00
Simon Knott
3e6bba0b79
fix(only changed): make only-changed work together with list mode ( #32196 )
...
Closes https://github.com/microsoft/playwright/issues/32161
Turns out we were wrong in
https://github.com/microsoft/playwright/pull/31727#discussion_r1685793870 !
Adds support for `--only-changed` in combination with `--list` by
removing our code to prevent that.
2024-08-16 17:12:45 +02:00
Dmitry Gozman
c4bb24f02f
feat(test runner): record trace after a test-scoped fixture teardown times out ( #32160 )
...
Fixes #30718 , fixes #31537 .
2024-08-16 08:03:02 -07:00
Dmitry Gozman
e17d1c498b
fix(test runner): timeout in fixture teardown should not prevent other slots ( #32157 )
...
When two fixtures have different time slots, timeout in the first one
should not prevent the second one from tearing down.
Similarly, timeout in afterEach hook should not prevent fixture
teardowns.
2024-08-16 04:25:00 -07:00
Simon Knott
06ffdd61c9
fix(only-changed): show nice error message about shallow clones ( #32189 )
...
Closes https://github.com/microsoft/playwright/issues/32188
---------
Signed-off-by: Simon Knott <info@simonknott.de>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2024-08-16 11:41:01 +02:00
Dmitry Gozman
1537d3c2de
chore(test runner): make 'debug' an explicit option internally ( #32154 )
...
This allows any time slot that has a legitimate timeout of zero to be
updated later on. See test for an example.
Previously, setting timeout to zero at any moment was considered a
"debug mode" and any subsequent timeouts were ignored.
2024-08-16 01:44:37 -07:00
Rui Figueira
b2ccfc3d01
chore(trace-viewer): support opening a source location in embedded trace viewer ( #32175 )
...
Related: https://github.com/microsoft/playwright-vscode/pull/513
2024-08-15 14:13:11 -07:00
Playwright Service
e7b7c715b0
feat(chromium): roll to r1131 ( #32174 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-15 20:41:27 +02:00
Max Schmitt
a1d32d997c
fix(client-certificates): improve close handling from target and proxy ( #32158 )
2024-08-15 10:21:10 +02:00
Max Schmitt
aac3a84321
fix(client-certificates): stall on tls handshake errors ( #32163 )
...
Extracted from https://github.com/microsoft/playwright/pull/32158 .
2024-08-15 08:51:40 +02:00
Debbie O'Brien
f927495791
docs: release video and trace viewer video ( #32164 )
2024-08-14 23:20:19 +02:00
Yury Semikhatsky
60900f8541
chore(webkit): add listeners directly without eventsHelper ( #32149 )
...
The listeners are never removed, so there is no point in wrapping them
with the helper
2024-08-14 08:38:49 -07:00