Joel Einbinder
c03e8b7946
chore(tests): add types for tests ( #915 )
...
I enabled vscode autocomplete in our test files. Typechecking had too many errors to enable, but it caught some real bugs that I will fix in a follow up.
This patch contains:
* `test/types.d.ts` - d.ts file for our test runner.
* `test/tsconfig.json` - typescript project for our tests.
* JSDoc header in all specs to mark the describe as a TestSuite
* Drive-by fix of a launcher test that was using `if` instead of `it`
* Some drive-by fixes of unimpactful typos in tests.
2020-02-10 13:20:13 -08:00
Andrey Lushnikov
9da0229fd3
chore: bump rimraf to 3.0.2 ( #916 )
...
Fixes #808
2020-02-10 11:27:27 -08:00
Andrey Lushnikov
4fcc63f2e1
chore: remove usages of mime
module from infrastructure
...
Follow-up to 4d84e35096
2020-02-10 11:26:08 -08:00
Pavel Feldman
84f5700294
feat(api): rename browserContext() to context() in the apis, remove url from newPage ( #906 )
2020-02-10 10:41:45 -08:00
Pavel Feldman
4d84e35096
fix(upload): detect mime type from file extension ( #911 )
2020-02-10 10:08:51 -08:00
Pavel Feldman
79b7a8491e
fix(screenshot): be careful w/ default viewport, extract common logic ( #913 )
...
Fixes #887 .
2020-02-10 09:15:15 -08:00
Pavel Feldman
2dd11eaa09
docs: remove browser.newPage from README
2020-02-09 21:45:41 -08:00
Pavel Feldman
50f96eb9fc
docs: update readme to address browser changes questions
2020-02-09 16:31:37 -08:00
Pavel Feldman
e9c14770d3
fix(webkit): fix remaining tests on windows ( #905 )
2020-02-07 17:39:32 -08:00
Andrey Lushnikov
f4734ef570
feat(testrunner): show workerId in verbose mode
2020-02-07 17:16:31 -08:00
Pavel Feldman
d71c9e03d7
feat(webkit): roll webkit to r1140 ( #904 )
2020-02-07 17:08:37 -08:00
Pavel Feldman
e2710dec29
browser(webkit): do not activate headless window on browser start ( #900 )
2020-02-07 16:05:04 -08:00
Pavel Feldman
36344dee27
tests: consistently use platform constants ( #899 )
2020-02-07 14:44:05 -08:00
Andrey Lushnikov
3acc65d285
devops: teach //browser_patches/webkit/build.sh to build both GTK & WPE
...
- use `//browser_patches/webkit/build.sh --gtk` to build GTK only
- use `//browser_patches/webkit/build.sh --wpe` to build WPE only
2020-02-07 13:57:08 -08:00
Joel Einbinder
73148fda79
chore(lint): add @typescript-eslint/no-unnecessary-type-assertion rule ( #898 )
2020-02-07 13:38:50 -08:00
Joel Einbinder
487d394f3b
chore(lint): add @typescript-eslint/type-annotation-spacing rule ( #897 )
2020-02-07 13:36:49 -08:00
Andrey Lushnikov
871235939e
devops: prettify telegram messages
2020-02-07 12:42:20 -08:00
Pavel Feldman
42c2cfc7cc
fix(pipe): sort out pipes on platforms ( #895 )
2020-02-07 11:48:55 -08:00
Pavel Feldman
0ed43e8781
feat(webkit) await the reading from pipe message ( #894 )
2020-02-07 10:52:59 -08:00
Pavel Feldman
cdbfc4c1c2
browser(webkit): report inspector pipe is listening via stdout ( #892 )
2020-02-07 10:00:34 -08:00
Pavel Feldman
8c2302d6ec
browser(webkit): do not navigate popups to about:blank on Win ( #886 )
2020-02-07 08:27:25 -08:00
Pavel Feldman
d397bb1bc3
feat(chromium): roll chromium to r739261 ( #885 )
2020-02-06 21:23:28 -08:00
Pavel Feldman
fe2431e34b
feat(webkit): roll webkit to r1137 ( #884 )
2020-02-06 21:06:55 -08:00
Dmitry Gozman
fee83b17c9
fix(api): page.viewport -> page.viewportSize ( #878 )
...
We now only allow to resize the page, leaving isMobile and deviceScaleFactor as browser context options.
2020-02-06 19:02:55 -08:00
Dmitry Gozman
c33a12d8f0
feat(firefox): ensure that new pages get browser context userAgent option ( #872 )
2020-02-06 19:01:03 -08:00
Pavel Feldman
bc912596b8
browser(webkit): use random ephemeral session ids on Mac ( #881 )
2020-02-06 17:33:11 -08:00
Joel Einbinder
06a7d7e3e3
docs(api.md): missing arguments for functions in page.route ( #880 )
2020-02-06 17:14:37 -08:00
Andrey Lushnikov
f15690da0d
browser(webkit): roll WebKit to tip-of-tree 2/6/2020 ( #877 )
2020-02-06 16:55:04 -08:00
Joel Einbinder
ffc1022717
fix(doclint): fix doclint for new typescript ( #879 )
...
Some types now have `innerTypeNames.length === 0`. Fun!
2020-02-06 16:26:36 -08:00
Andrey Lushnikov
ffc8f961da
browser(firefox): bump build number to r1025
2020-02-06 16:14:39 -08:00
Dmitry Gozman
9f0bbfff2c
browser(firefox): pause page on creation to handle emulation messages ( #871 )
...
153a95c23a
2020-02-06 16:07:52 -08:00
aesyondu
75340f34ad
chore: Note that (code) coverage is only available for chromium ( #867 )
2020-02-06 15:51:03 -08:00
Andrey Lushnikov
8c6faab012
browser(firefox): roll firefox to upstream's beta ( #876 )
2020-02-06 15:21:06 -08:00
Pavel Feldman
99d06892c5
tests: explicitly close contexts for browser.newPage ( #875 )
2020-02-06 15:18:07 -08:00
Joel Einbinder
126eb505e8
fix(transport): dispatch messages in separate tasks ( #841 )
...
Fixes a bug in our pipe, and the same one in the non-standard `ws` module. Our protocol messages are I/O events, and therefore they should each be executed in their own task.
2020-02-06 14:14:46 -08:00
Pavel Feldman
6202ff12fd
browser(firefox): use guids for browser contexts, delete contexts on disconnect ( #866 )
2020-02-06 13:41:25 -08:00
Pavel Feldman
a547aa7984
feat(connect): allow multiple webkit connections over web socket ( #863 )
2020-02-06 12:41:43 -08:00
Andrey Lushnikov
f49d63ff0c
test: remove fdescribe
2020-02-06 12:20:29 -08:00
Pavel Feldman
5152540f47
test(cookies): add more isolation tests ( #869 )
2020-02-06 09:24:10 -08:00
Andrey Lushnikov
a72784a677
fix(test): properly clean input field ( #860 )
2020-02-05 18:11:33 -08:00
Andrey Lushnikov
fa6a5edb31
chore: fix typo in aliases
2020-02-05 17:42:34 -08:00
Andrey Lushnikov
177a1d43b3
chore: add "unit", "wunit" and "funit" aliases ( #859 )
...
These are faster to type on the split keyboard :-[
2020-02-05 17:37:44 -08:00
Dmitry Gozman
6318ba6e4a
feat(frame): introduce frame.frameElement ( #856 )
...
Fixes #839 .
2020-02-05 17:20:23 -08:00
Joel Einbinder
4be39f8af0
chore(types): upgrade to typescript 3.7.5 ( #855 )
2020-02-05 16:53:36 -08:00
Andrey Lushnikov
4aa155ede1
docs(api.md): fix link
2020-02-05 16:53:02 -08:00
Andrey Lushnikov
cd68619786
chore: fix protocol-types-generator to work with new API
...
Follow-up to a2ab645e63
2020-02-05 16:51:16 -08:00
Pavel Feldman
55b6fe241e
feat(launch): introduce client, server & persistent launch modes (3) ( #854 )
2020-02-05 16:36:36 -08:00
Dmitry Gozman
28c4a1697c
fix(chromium): ensure we resume service worker before detaching from it ( #850 )
2020-02-05 16:08:28 -08:00
Andrey Lushnikov
a4c40fff82
test: make sure page.fill
actually clears an input ( #851 )
2020-02-05 16:07:25 -08:00
Dmitry Gozman
1b1ed087ae
browser(webkit): introduce DOM.scrollIntoViewIfNeeded ( #847 )
...
69fb612396
2020-02-05 15:17:12 -08:00