Pavel Feldman
a8d48a1a48
chore: remove hard-coded wrapApi names ( #7347 )
2021-06-28 13:27:38 -07:00
Max Schmitt
0776cf76a2
feat(test-runner): do only allow unique spec titles per suite ( #7300 )
2021-06-28 22:13:35 +02:00
Max Schmitt
8414bafd86
docs(python): add example for testing Chromium extensions ( #7338 )
2021-06-28 21:26:04 +02:00
Max Schmitt
9f9201420a
fix(websockets): filter for text and binary frames ( #7360 )
2021-06-28 21:23:29 +02:00
Max Schmitt
8fa93ae6be
browser(firefox): add transferSize to Network.requestFinished ( #7355 )
2021-06-28 21:22:55 +02:00
Ronie Martinez
409aeaa443
feat(codegen): Add type annotations to Python output and make PEP8-compliant ( #7337 )
2021-06-26 13:11:32 -07:00
Pavel Feldman
2fa436675f
docs(cdp): more python cdp fixes (2)
2021-06-26 08:31:36 -07:00
Pavel Feldman
ff2e5f9120
docs(cdp): more python cdp fixes
2021-06-26 08:30:06 -07:00
Joel Einbinder
0af1f4399d
fix(test-runner): fix default export breaking on installation tests ( #7331 )
2021-06-25 22:52:04 -07:00
Pavel Feldman
02538fb587
fix(trace): account for last child node removal ( #7332 )
2021-06-25 18:52:36 -07:00
Pavel Feldman
ec47b03722
fix(trace): show interrupted actions in trace ( #7329 )
2021-06-25 17:14:19 -07:00
Joel Einbinder
7caf05b24a
fix(playwright-test): have the proper default export ( #7328 )
...
There are 3 ways to import `@playwright/test` library in the modern Node.js ecosystem:
- Using `require`: works great, this patch doesn't change it
- Using `import` statement from `.mjs` file - we have wrong `default` for @playwright/test that should be a `test`. This is what test checks for
- Using `import test from '@playwright/test'` from `.ts` file - was broken because TypeScript thought it's a CJS module, whereas it's a ESM module in reality.
Also, typescript types import from `.d.ts` file was broken because we had no default export (`export *` syntax does not export default).
2021-06-25 15:29:22 -07:00
Max Schmitt
701624c484
chore: roll playwright-test to 1.13.0-next-1624575246000 ( #7291 )
2021-06-25 22:53:14 +02:00
Max Schmitt
aabd1b2f7f
chore: move unnecessary deps to devDependencies ( #7327 )
2021-06-25 22:27:19 +02:00
Pavel Feldman
550b48f958
docs: fix the python cdp snippet ( #7324 )
2021-06-25 11:53:55 -07:00
Max Schmitt
9f3bccc200
fix(test-runner): move OverriddenExpectProperties outside the namespace ( #7319 )
2021-06-25 17:27:39 +02:00
Andrey Lushnikov
1157f622f3
fix(test-runner): default @playwright/test timeout to 0 ( #7312 )
...
All actions for the `@playwright/test` actions inside test should
have default 0 timeout. This way they will never clash with the
test timeout.
2021-06-24 23:28:01 -07:00
Pavel Feldman
b963dbbe3c
browser(webkit): add app icon on Mac ( #7315 )
2021-06-24 23:26:48 -07:00
Pavel Feldman
a0946afb6b
browser(webkit): add app icon on Linux ( #7313 )
2021-06-24 22:20:58 -07:00
Max Schmitt
908ad6921f
fix(test-runner): make it compatible when running as a sub-process ( #7298 )
...
Works around the following bug: https://github.com/nodejs/node/issues/12921
2021-06-25 00:54:06 +02:00
Daniel Kolesa
80eb64594b
browser(webkit): roll to 06/23/21 ( #7278 )
2021-06-24 13:41:22 -07:00
Max Schmitt
4c6deaa449
test: added tests for WebSocket over Socks proxy ( #7235 )
2021-06-24 18:50:16 +02:00
Pavel Feldman
e6bf0a07fe
feat(force): add fill, selectOption, selectText ({force}) ( #7286 )
2021-06-24 08:18:09 -07:00
Joel Einbinder
ba3f0ff6f5
fix(test-runner): remove unimplemented jest expect types ( #7292 )
2021-06-24 02:08:02 -07:00
Max Schmitt
bd86e70465
feat(test-runner): allow to focus a test in a location ( #7208 )
2021-06-24 10:02:34 +02:00
Pavel Feldman
5732307280
feat(inputValue): implement *.inputValue() ( #7285 )
2021-06-23 22:19:20 -07:00
Andrey Lushnikov
0d9cfd76c3
browser(chromium): roll Chromium to r895386 ( #7287 )
2021-06-23 18:55:29 -07:00
Joel Einbinder
1a6d46d844
chore(typescript): compile with babel, lint everything with tsc ( #6872 )
2021-06-23 18:01:48 -07:00
Max Schmitt
b3cc683e6b
chore hide Download._cancel ( #7282 )
2021-06-23 23:20:36 +02:00
Max Schmitt
0d36cec600
chore: remove Playwright GitHub Action mentions ( #7281 )
2021-06-23 23:15:00 +02:00
Dmitry Gozman
4c6fa42810
fix(test runner): expose real stack traces and speed up locations ( #7265 )
...
Stop wrapping/prepending error messages so that we do not loose the stack trace. For this, update a few manually thrown errors with better messages (usually including a file path).
Speed up locations by doing manual `sourceMapSupport.wrapCallSite()` for a single call site. Performance gain in the runner process with 100 files x 100 tests each:
- 25% on the fresh run without babel cache;
- 80% on the cached run where babel is almost instant.
Also some obvious cleanups around stack traces (removing unused code).
2021-06-23 10:30:54 -07:00
Andrey Lushnikov
f342d8b0b1
devops: fix prepare checkout script on pristine machine ( #7270 )
...
Fixes #7269
2021-06-23 03:31:51 -07:00
Max Schmitt
103f8ddd06
Revert "chore: update eslint config ( #6840 )" partly ( #7268 )
...
This reverts commit ec7d37d92f
.
2021-06-23 11:08:35 +02:00
Max Schmitt
7b6e9b9be9
test: skip some failing req interception tests for current Chrome stable ( #7255 )
...
Some tests are currently failing Chrome/Edge stable and Electron:
- page/page-request-intercept.spec.ts:60:1 › [chromium] should support fulfill after intercept
- page/page-request-intercept.spec.ts:73:1 › [chromium] should support request overrides
Was introduced in #7122 . This change should give us again full green bots.
2021-06-23 01:47:28 -07:00
David Murdoch
708fde8f0a
docs(python): fixed broken snippet in assertions.md
...
Co-authored-by: Max Schmitt <max@schmitt.mx>
2021-06-23 10:17:50 +02:00
Max Schmitt
99bbc51760
fix(test-runner): support ANSII terminals with list reporter ( #7258 )
2021-06-22 19:04:24 +02:00
Martin Costello
af18b31473
docs(dotnet): fixed broken code snippets which contained Java ( #7260 )
2021-06-22 14:56:28 +02:00
Dmitry Gozman
73a43fce60
chore(test runner): self profile under PWTEST_PROFILE_DIR ( #7252 )
...
`PWTEST_CLI_ALLOW_TEST_COMMAND=1 PWTEST_PROFILE_DIR=./profile node lib/cli/cli.js test -c <dir/config>`
2021-06-21 14:49:43 -07:00
Max Schmitt
143689e34f
fix: Jest isError handling to work with TypeError ( #7251 )
2021-06-21 21:48:24 +02:00
Max Schmitt
4d0d3924f0
fix(test-runner): allow viewport null values ( #7225 )
2021-06-21 20:26:14 +02:00
Dmitry Gozman
6118d16edd
fix(test runner): properly keep track of requireFile to support helpers/wrappers ( #7243 )
...
This fixes an issue where we incorrectly labeled and assigned ids for tests
that declared tests in require'd files or used test wrappers.
See new tests for examples.
2021-06-21 11:25:15 -07:00
Yury Semikhatsky
b9c619206f
browser(webkit): fix mac compilation ( #7253 )
2021-06-21 11:20:19 -07:00
Max Schmitt
f4bf400f05
docs(python): enhance intro ( #7234 )
2021-06-21 19:57:56 +02:00
Max Schmitt
590184998f
chore: improve connectOverCDP error handling ( #7239 )
2021-06-21 19:57:00 +02:00
Max Schmitt
498b2d7ca0
docs(test-runner): added JSDoc hints to code snippets ( #7226 )
2021-06-21 19:56:30 +02:00
Yury Semikhatsky
47341dc1a9
feat(webkit): intercepted response body ( #7228 )
2021-06-21 10:53:29 -07:00
Max Schmitt
07fc8cc777
fix(driver): fix compatibility when folder contains space ( #7240 )
2021-06-21 10:18:09 -07:00
Azriz Jasni
af06093869
docs(test-runner): fix missing reporter key config in snippet ( #7242 )
2021-06-21 13:52:25 +02:00
Pavel Feldman
ea4eebeb2d
feat(test-runner): document tagging, implement grep-invert ( #7227 )
2021-06-18 17:56:59 -07:00
Max Schmitt
3106c822a7
devops: test Docker image on root user ( #7219 )
2021-06-18 11:07:15 -07:00