Commit Graph

5492 Commits

Author SHA1 Message Date
Dmitry Gozman
a479cb6f52
fix(test runner): add an overload for test.skip(title, fn) (#8454)
We shipped this feature, but forgot to add the right overload to d.ts.
2021-08-25 14:36:36 -07:00
Yury Semikhatsky
204b6321b4
feat(webkit): bump to 1534 (#8451) 2021-08-25 14:27:49 -07:00
Ross Wollman
cd110e6477
feat(har): Remotely accessible HAR file (#8385)
This change ensure's the HAR file is saved at `recordHar.path` on the
client instead of the server.

NB: The goal was to make this change transparent to the user and NOT
introduce any new APIs. Namely, I want to leave the API open for
potential `context.har.start()` and `context.har.stop()`.

This does BREAK servers that expect the HAR to be at the `recordHar.path`
on the server, but I think that's OK since there haven't been reports
of missing HAR on client making me think not many users are getting
HAR with client and server on different hosts anyways.

Closes #8355
2021-08-25 13:32:56 -07:00
Dmitry Gozman
de85d8bb83
fix(test runner): do not special case test.fail (#8447)
This makes `test.fail` tests considered as passing when they actually fail:
- Stop restarting the worker.
- Retry when it passes instead of a fail.
- Behaves similar to regular tests in a `describe.serial` suite.
2021-08-25 12:19:50 -07:00
Dmitry Gozman
e726c18788
chore: use 'mime' for various mimeType-extension mappings (#8426) 2021-08-25 11:18:35 -07:00
Andrey Lushnikov
2453ca0d49
browser(firefox-beta): roll to 92.0b9 (#8442) 2021-08-25 08:55:46 -07:00
Joel Einbinder
e04ff81921
browser(firefox): Browser.setPlatformOverride (#8440) 2021-08-25 11:45:45 -04:00
Joel Einbinder
f7950352b9
browser(firefox): Page.dispatchWheelEvent (#8439) 2021-08-25 11:27:12 -04:00
Andrey Lushnikov
831cff1a82
devops: drop build infrastructure for WebKit @ MacOS 10.14 (#8438)
We did not support it for a while now and had 0 complaints.
2021-08-25 07:44:28 -07:00
Joel Einbinder
744a2751de
browser(firefox): disable enterprise policies (#8388) 2021-08-25 10:26:20 -04:00
Joel Einbinder
fc991fe897
chore(typescript): turn on noImplicitOverride (#7810) 2021-08-25 10:11:18 -04:00
Joel Einbinder
943c22c9c4
fix(protocol): remove unnused strict in QSA and add it to waitForSelector docs (#8140)
Strict doesn't make sense in querySelectorAll, but it was in the protocol.

And we had a strict option in ElementHandle.waitForSelector but it
was not surfaced in the docs/api.
2021-08-25 10:10:40 -04:00
Joel Einbinder
527cdfb55b
browser(webkit): scrolling (#8421) 2021-08-25 09:36:51 -04:00
github-actions[bot]
1155ecf29a
browser(chromium): roll to r914909 (#8435)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2021-08-25 14:50:26 +02:00
Max Schmitt
6c8c18dc73 test: skip 'should work with lazy loading iframes' on Android 2021-08-25 14:27:44 +02:00
Anže Vodovnik
061b5c67f2
chore(dotnet): generate [Obsolete] on deprecated members (#8434) 2021-08-25 14:24:18 +02:00
Max Schmitt
db36f40422
chore: create issue on PR merge with client side changes (#8377) 2021-08-25 13:36:57 +02:00
Max Schmitt
8189de42cf
test: fix package installation tests (#8430) 2021-08-25 13:34:54 +02:00
Dmitry Gozman
29eb6cb777
chore: migrate tracing to har (#8417)
chore: migrate tracing to har

- `HarTracer` is used by both `HarRecorder` that implements
  `recordHar` context option, and by tracing.
- We keep the `trace.network` format for now, so it is not
  yet a valid har file, but it contains har entries.
2021-08-24 21:09:41 -07:00
Pavel Feldman
cccc2ac4bc chore: fix docs 2021-08-24 19:49:02 -07:00
Dmitry Gozman
33852635b7
fix(fetch): skip tests on non-default modes, add node-fetch to deps list (#8425) 2021-08-24 19:41:29 -07:00
Yury Semikhatsky
a6740c852a
test: webkit linux fails to load application/octet-stream resource (#8424) 2021-08-24 17:34:29 -07:00
Dmitry Gozman
b188468fa4
fix(tracing): rewrite blob urls so that we can intercept them (#8423) 2021-08-24 17:05:26 -07:00
Yury Semikhatsky
338d3c8fd4
test: override dns lookup to support subdomains (#8419) 2021-08-24 16:55:10 -07:00
Max Schmitt
712a36649b
fix(test-runner): do not start web-server when tests are listed (#8414) 2021-08-24 23:39:24 +02:00
Yury Semikhatsky
7f02e9ebb1
chore: enable logical assignment babel plugin (#8416) 2021-08-24 14:29:20 -07:00
Yury Semikhatsky
c0010d16c6
feat: introduce BrowserContext._fetch (#8349) 2021-08-24 14:29:04 -07:00
Joel Einbinder
c9718359f1
fix(codegen): properly escape everything for windows (#8415) 2021-08-24 17:09:05 -04:00
Dmitry Gozman
b0a7843247
chore: migrate tracing ResourceSnapshot to follow har entry format (#8391)
This will ease the migration of tracing to har.
2021-08-24 13:17:58 -07:00
Dmitry Gozman
75fb77355a
test(test runner): check retries with beforeAll failure and multiple tests (#8413) 2021-08-24 12:22:16 -07:00
Max Schmitt
8e20f13079
feat(routes): add support for the times option (#8399) 2021-08-24 20:45:50 +02:00
Yury Semikhatsky
59422a00f5
feat(route): rename method, add response option (#8386) 2021-08-24 11:07:54 -07:00
Kumar Aditya
20e4d9eee5
docs(python): mention loop compatibility (#8403) 2021-08-24 17:04:25 +02:00
Joel Einbinder
a8a3799e9d
fix(test-runner): use describe name in output dir (#8282) 2021-08-24 10:33:40 -04:00
Max Schmitt
a48dd8b84b
docs(test-runner): add frontmatter to custom TS page (#8398) 2021-08-24 15:57:45 +02:00
Max Schmitt
d52250f2c5
docs: add note about Service Workers and route (#8401) 2021-08-24 15:57:35 +02:00
github-actions[bot]
5814a4aab8
browser(chromium): roll to r914153 (#8363)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2021-08-24 12:46:54 +02:00
Anish Karandikar
e7aec6d82b
chore: minor edit to utils/update_canary_version.js (#8244) 2021-08-24 03:02:24 -07:00
Pavel Feldman
ef35bfa0da
docs: update cli & pom docs (#8380) 2021-08-23 20:10:12 -07:00
Joel Einbinder
6685f0dd76
fix(types): add electron.launch.timeout (#8384) 2021-08-23 20:09:47 -07:00
Aldo Velasco
c355d4d05a
docs(test-parallel-js): fixes typo in retries (#8387) 2021-08-23 20:08:02 -07:00
Joel Einbinder
ce2aa1782b
fix(test): fix broken codegen test (#8383) 2021-08-23 22:38:50 -04:00
Dmitry Gozman
47724fed5a
chore(tracing): rework start/export chunks (#8378)
Instead of filtering the whole trace file on export, we write
into separate trace file for each chunk. We also write a separate
trace.network file with all resources, because it is reused between
chunks.

This brings us towards `tracing.startFile()/stopFile()` api.
2021-08-23 16:08:09 -07:00
Joel Einbinder
0ed3c79d51
fix(selectors): nicer errors if the selector engine returns a bad value (#8259)
Co-authored-by: Pavel Feldman <pavel.feldman@gmail.com>
2021-08-23 22:54:02 +02:00
Anish Karandikar
4dac4772ca
docs(intro): Fix writing assertions snippet (#8372)
Fixes #8333
2021-08-23 22:50:56 +02:00
Joel Einbinder
c8f3c65d22
doc(test-runner): add example of compiling tests with typescript (#8046) 2021-08-23 16:40:03 -04:00
Pavel Feldman
fa89b9a554 docs: spelling 2021-08-23 13:34:38 -07:00
Dmitry Gozman
827a909d36
docs: deprecate timeout option in isVisible/isHidden methods (#8371) 2021-08-23 12:32:06 -07:00
Joel Einbinder
60829f8909
fix(codegen): escape tricky characters (#8350) 2021-08-23 12:22:19 -04:00
Dmitry Gozman
026426227d
docs: update "recording a trace" section (#8368) 2021-08-23 09:21:53 -07:00