Commit Graph

4984 Commits

Author SHA1 Message Date
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
Yury Semikhatsky
c0cd2d4579
feat: response interception (#7122) 2021-06-18 11:04:48 -07:00
Pavel Feldman
6f9d2ba53d docs: make docs test-first (2) 2021-06-18 10:56:47 -07:00
Yury Semikhatsky
79b2e5ddeb
feat(webkit): bump to 1500 (#7224) 2021-06-18 10:20:09 -07:00
Pavel Feldman
deec8a4adb
docs: make docs test-first (#7214) 2021-06-18 10:09:38 -07:00
Pavel Feldman
1b2f0714f7
docs: document passing data from global setup (#7213) 2021-06-17 17:21:22 -07:00
Joel Einbinder
4a04a939a9
fix(docker): use node 14 not node 16 (#7212) 2021-06-17 16:14:10 -07:00
Dmitry Gozman
388c6f5196
feature(test runner): capture error and pending calls when timing out (#7193) 2021-06-17 15:09:38 -07:00
Dmitry Gozman
78261d2373
docs: clarify that attribute selectors are not CSS (#7210) 2021-06-17 15:08:05 -07:00
Joel Einbinder
9e95e86082
fix(deps): remove extra colors dev dependency (#7195) 2021-06-17 13:41:59 -07:00
Max Schmitt
5bf69b667e
fix(test-runner): allow additional params when pw-test is not installed (#7200) 2021-06-17 13:40:49 -07:00
Ross Wollman
219e5138be
feat(response): expose connection details in API (#7150) 2021-06-17 13:04:55 -07:00
Dmitry Gozman
5e471a3ece
feat(test runner): add type to TestInfo.error (#7207)
It has a very special `TestError` type, but we say it's `any` for some reason.
2021-06-17 12:14:28 -07:00
Diego Pino
1a9a5d8e9a
browser(webkit): roll to 06/17/21 (#7202)
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
2021-06-17 12:05:05 -07:00
Joel Einbinder
10a82f862c
fix(snapshotter): support constructed CSSStyleSheet
Fixes #7085
2021-06-17 09:41:29 -07:00
Max Schmitt
36c5395d2d
chore: rebase documentation and markdown classes from docs (#7172) 2021-06-17 08:19:24 +02:00
Chris Bolin
2e251d9d5d
clean up language in installation.md (#7184) 2021-06-16 18:39:15 -07:00
Andrey Lushnikov
5002420a6f
chore: further enhanced repack-juggler script (#7188)
With this change, the script is now 2-stage:
- first, prepare browser build with `repack-juggler.js --prepare`
- afterwards, run the script to repack tot juggler version with the
  bubild
2021-06-16 17:32:37 -07:00
Pavel Feldman
82a50b0e1d
fix(test-runner): property handle artifacts in context of preserveOutput (#7181) 2021-06-16 16:05:30 -07:00
Andrey Lushnikov
0cfea9a623
feat(chromium): roll to r891964 (#7185) 2021-06-16 16:00:54 -07:00
Andrey Lushnikov
bc850b9ef9
feat: enhance repack-juggler.js to autodetect current platform (#7183)
This steals some parts of `//src/util/registry.ts`.
2021-06-16 15:13:51 -07:00
Andrey Lushnikov
6b74072ea4
feat(firefox): roll Firefox to r1264 - v90.0b8 (#7179) 2021-06-16 13:07:20 -07:00
Andrey Lushnikov
04de4ad93e
devops: cleanup browser build configs (#7180)
- certain builds weren't listed in EXPECTED_BUILDS
- wekbit had one unused build configuration
2021-06-16 12:22:33 -07:00
Andrey Lushnikov
53ac9066da
devops: fix missing host in build scripts (#7178) 2021-06-16 10:38:00 -07:00