Sebastian Silbermann
fbaf56a13f
feat(ct-react): Support React 18 only ( #19814 )
...
BREAKING CHANGE: Drop support for React 17 and earlier
Support for React 17 an earlier is provided by
`@playwright/experimental-ct-react-17`
Closes #19923
2023-03-03 14:28:33 -08:00
Yury Semikhatsky
be259dac7c
fix: expose window.safari in webkit ( #21361 )
...
The actual API of the object is not implemented because those who want
to test it will likely need their own mock and for the browser detection
logic (as described in the bug) just having the property on window
should be sufficient.
Fixes #21037
2023-03-03 13:38:13 -08:00
Yury Semikhatsky
26fa0eeae8
test: har does not hang on slow chunked response ( #21392 )
...
#21182
2023-03-03 11:32:21 -08:00
Playwright Service
0af8c0169e
feat(webkit): roll to r1807 ( #21389 )
2023-03-03 11:28:05 -08:00
Debbie O'Brien
a8b5f51be1
docs: add page for global setup teardown ( #21376 )
2023-03-03 11:27:21 -08:00
Pavel Feldman
7f8db8f3c0
test(electron): extend args test ( #21388 )
2023-03-03 09:25:18 -08:00
Pavel Feldman
fc91e6086b
chore: minor trace viewer ui fixes ( #21368 )
2023-03-03 09:17:40 -08:00
Pavel Feldman
c17eea7a3c
chore: fix xpath-in-iframe ( #21367 )
...
Fixes https://github.com/microsoft/playwright/issues/21364
2023-03-03 09:13:25 -08:00
Debbie O'Brien
e29a6e7bb0
docs: update test reporters ( #21337 )
2023-03-03 07:52:28 -08:00
Dmitry Gozman
eb3f8bfba8
fix(test runner): do not optimize filtering when sourcemap is present ( #21359 )
...
Fixes #21204 .
2023-03-03 07:49:19 -08:00
Playwright Service
00c34a83ef
feat(chromium-tip-of-tree): roll to r1091 ( #21356 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-03 13:38:32 +01:00
Max Schmitt
778f8e65d2
chore: do not cache between reused context ( #20052 )
...
Fixes https://github.com/microsoft/playwright/issues/19926
2023-03-03 12:37:44 +01:00
Dmitry Gozman
6769a311ed
feat(test runner): error out when one test file imports another ( #21357 )
...
This situation is not supported, and we can now detect it by looking at
collected file dependencies.
Fixes #21270 .
2023-03-02 15:09:50 -08:00
Pavel Feldman
09ff7eaaf2
chore: throw on context.close() if it was closed externally ( #21347 )
2023-03-02 13:46:54 -08:00
Pavel Feldman
57624bc01b
chore: ui mode ui improvements ( #21325 )
2023-03-02 13:45:15 -08:00
Sander
2cbde9b8ef
chore(ct): vue2 import h from vue ( #21035 )
2023-03-02 13:43:08 -08:00
Sander
d58d833daf
fix(ct): solid and react JS as child ( #20125 )
2023-03-02 13:40:51 -08:00
Dmitry Gozman
0b300f455c
fix(test runner): empty dependency should not skip other projects ( #21354 )
...
References #21270 .
2023-03-02 13:32:23 -08:00
Playwright Service
b7dd226edd
feat(chromium): roll to r1052 ( #21353 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-02 22:07:20 +01:00
Playwright Service
0ce5651975
feat(webkit): roll to r1805 ( #21349 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-02 22:07:05 +01:00
Max Schmitt
e1e69cbbcc
fix(cli): pdf/screenshot did not save artifacts ( #21352 )
...
As of today we support CLI argument wise `--save-storage` and
`--save-har` in pdf/screenshot CLI command. But they are not working,
since we just close the browser rather than the context where we take
care of saving the artifacts.
`launchContext` has 4 usages:
- open/codegen there closing the browser / `SIGINT` will close it
gracefully
- pdf/screenshot there we will now close the page which will then
[here](b00579edb7/packages/playwright-core/src/cli/cli.ts (L503)
)
close the browser.
I did not find any tests except the [installation
test](3e84ab4701/tests/installation/playwright-cli-screenshot-should-work.spec.ts
),
I'm happy to add one for both command if requested.
Fixes https://github.com/microsoft/playwright/issues/20718
2023-03-02 22:05:39 +01:00
Yury Semikhatsky
b00579edb7
fix(trace): do not show duration tooltip for events ( #21342 )
...
Fixes https://github.com/microsoft/playwright/issues/21255
2023-03-02 11:31:10 -08:00
Debbie O'Brien
744739a3d0
docs: improve config for test parallel ( #21333 )
2023-03-02 18:49:41 +01:00
Debbie O'Brien
e10199fd5a
docs: retries update to add configuration ( #21338 )
2023-03-02 08:33:30 -08:00
Andrey Lushnikov
bfc895787f
fix(firefox): fix reload with hash URLs ( #21322 )
...
Fixes #21145
2023-03-01 18:56:30 -08:00
Pavel Feldman
e64d0ae556
chore: update trace every time it is loaded ( #21323 )
2023-03-01 17:42:50 -08:00
Yury Semikhatsky
3b800344b0
fix(oopif): get response body from adopting frame ( #21324 )
...
Fixes https://github.com/microsoft/playwright/issues/20809
2023-03-01 17:18:58 -08:00
Dmitry Gozman
a1ba6757e0
feat(typescript): allow declare
for class properties ( #21281 )
...
This enables `allowDeclareFields` flag that allows code like:
```ts
class Foo {
declare prop: string;
}
```
Declaring is a workaround for inheritance vs property initialization
issues.
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#the-usedefineforclassfields-flag-and-the-declare-property-modifier
For `allowDeclareFields` to work, we have to run
plugin-transform-typescript before plugin-proposal-class-properties and
few others, so this change migrates from preset-typescript that always
runs last to individual plugin-transform-typescript, and reorders some
plugins.
References #21119 .
2023-03-01 16:43:17 -08:00
Max Schmitt
6a7347f134
chore: have pretty error if CT config has no defineConfig ( #21318 )
...
Fixes https://github.com/microsoft/playwright/issues/21312
2023-03-02 00:47:05 +01:00
Dmitry Gozman
d9b0c58b96
fix(trace viewer): force https requests from https snapshots ( #21317 )
...
Set 'Content-Security-Policy: upgrade-insecure-requests' header for
snapshots to force all `http` subresources into `https` and avoid
blocked resources because of mixed-content.
References #21263 .
2023-03-01 15:32:39 -08:00
Pavel Feldman
e222874445
chore: ui mode first cut ( #21291 )
2023-03-01 15:27:23 -08:00
Pavel Feldman
c42a1205b1
chore: do not generate history entries on snapshot switch ( #21283 )
2023-03-01 13:44:58 -08:00
Pavel Feldman
2cbafd7adf
chore: mark waitForNavigation as deprecated consistently ( #21309 )
2023-03-01 12:40:50 -08:00
Pavel Feldman
54dfe5378d
chore: point to pwt cli, a direct dependency ( #21311 )
2023-03-01 12:17:43 -08:00
Andrey Lushnikov
4d3b056f27
test: add more tests for reload ( #21296 )
...
Make sure `page.reload()` doesn't reload a related popup and
only reloads target page.
2023-03-01 10:52:55 -08:00
Yury Semikhatsky
f8100bbb25
fix: expect unquoted npde.exe path ( #21307 )
...
* It is more common to set env variable value without quotes on Windows
(see the bug)
* Use defined to check for string presence, it will work nicely with
strings that contain whitespaces
https://github.com/microsoft/playwright-java/issues/1213
2023-03-01 09:16:23 -08:00
Yury Semikhatsky
60e5a93832
fix(store): support text and binary values ( #21006 )
2023-03-01 08:49:31 -08:00
Playwright Service
d12d35f124
feat(firefox): roll to r1384 ( #21271 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-01 10:25:43 +01:00
Playwright Service
c7df9e6bcb
feat(firefox-beta): roll to r1386 ( #21276 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-01 00:40:22 -08:00
Dmitry Gozman
b343d453bc
fix(trace viewer): allow http/https mismatch when deployed as https ( #21289 )
...
References #21263 .
2023-02-28 17:08:46 -08:00
Pavel Feldman
933332ad97
chore: fix trace modernizer ( #21286 )
2023-02-28 16:49:14 -08:00
Andrey Lushnikov
b607c92651
test: add a regression test for reload bug in firefox ( #21282 )
...
References https://github.com/microsoft/playwright/issues/20791
2023-02-28 16:05:12 -08:00
Pavel Feldman
de3a5e2a91
chore(trace): include expect steps in a trace ( #21199 )
2023-02-28 13:26:23 -08:00
Dmitry Gozman
27027658dc
chore: fix all Proxy() to account for symbol properties ( #21272 )
...
Fixes #20940 .
2023-02-28 12:45:14 -08:00
Debbie O'Brien
9b78b7151e
docs: improve running tests ( #21266 )
2023-02-28 20:58:24 +01:00
Debbie O'Brien
d0d1d144f1
docs: Browsers page rework ( #21051 )
2023-02-28 18:09:44 +01:00
Pavel Feldman
0961c48313
Update bug.md
...
Strong-require repro steps.
Signed-off-by: Pavel Feldman <pavel.feldman@gmail.com>
2023-02-28 08:57:46 -08:00
Playwright Service
274939eaf8
feat(chromium-tip-of-tree): roll to r1090 ( #21257 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-28 14:08:41 +01:00
Playwright Service
c5c6d7afad
feat(firefox-beta): roll to r1385 ( #21258 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-28 14:05:31 +01:00
Playwright Service
f11febd232
feat(firefox): roll to r1383 ( #21254 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-28 14:05:21 +01:00