Andrey Lushnikov
1f29930201
devops: add docs & lint github workflow ( #953 )
2020-02-12 11:50:20 -08:00
Andrey Lushnikov
0de625d3ac
Revert "devops: add docs & lint github workflow"
...
This breaks YML syntax in GH workflows
2020-02-12 11:45:16 -08:00
Andrey Lushnikov
7ec7f72a74
devops: add docs & lint github workflow
2020-02-12 11:44:28 -08:00
Andrey Lushnikov
9bbaa32e12
browser(webkit): remove assert ( #952 )
2020-02-12 11:38:38 -08:00
Dmitry Gozman
3007541315
browser(webkit): do not intercept requests on the way to service worker ( #948 )
2020-02-12 08:48:47 -08:00
Pavel Feldman
c8c4356d7c
test: add setInputFiles input event test ( #944 )
2020-02-11 20:18:41 -08:00
Pavel Feldman
d05feec740
feat(active): emulate active state on webkit ( #941 )
2020-02-11 19:10:57 -08:00
Andrey Lushnikov
0d16d144b2
fix(firefox): rely on bundled firefox preferences ( #943 )
...
Since Firefox r1027 we bundle preferences alongside with build.
Fixes #857
2020-02-11 19:10:02 -08:00
Dmitry Gozman
da30847c83
feat(firefox): apply emulation to all pages in the browser context ( #931 )
2020-02-11 18:52:01 -08:00
Pavel Feldman
90367c1f66
browser(webkit): emulate active and focused state ( #940 )
2020-02-11 17:38:41 -08:00
Dmitry Gozman
f25a27a0a4
test: add a test for bounding box with page scale ( #935 )
...
Does not work on WebKit, because it uses device-independent pixels instead of css pixels for content quads.
2020-02-11 17:04:49 -08:00
Pavel Feldman
ce382137f3
browser(webkit): disregard dpi on windows ( #938 )
2020-02-11 16:38:21 -08:00
Dmitry Gozman
d37b67a833
browser(firefox): do not wait for initial navigation in default context ( #937 )
...
0a70be2bc6
2020-02-11 16:25:35 -08:00
Andrey Lushnikov
efa567d1b4
devops: fix firefox preferences build on mac
2020-02-11 16:22:31 -08:00
Andrey Lushnikov
451ec729b4
feat(chromium): roll Chromium to r740289 ( #936 )
2020-02-11 15:25:59 -08:00
Pavel Feldman
20e2bac857
test: fix flaky page event test
2020-02-11 15:19:43 -08:00
Pavel Feldman
53237009ad
feat($wait): make $wait a shortcut for waitForSelector ( #932 )
2020-02-11 14:51:09 -08:00
Andrey Lushnikov
3a32b14f32
devops: bundle firefox preferences alongside with build.
2020-02-11 14:42:04 -08:00
Joel Einbinder
6105d8a26a
fix(tests): fix test that was leaking a context ( #933 )
2020-02-11 14:15:30 -08:00
Pavel Feldman
aae5fca237
feat(api): make browser.newPage own the created context ( #930 )
2020-02-11 12:06:58 -08:00
Andrey Lushnikov
ad9d6cc31f
feat: introduce browserType.downloadBrowserIfNeeded() ( #834 )
...
Fixes #823
2020-02-11 11:33:48 -08:00
Dmitry Gozman
9ea8f49cd1
browser(firefox): attach to all pages in the browser context ( #928 )
...
- introduce BrowserContext abstraction;
- attach to all pages from owned browser contexts on creation;
- move page emulation to PageTarget/FrameTree, away from sessions and agents;
- remove explicit enable methods, replaced by Page.ready event;
- pass browser context options on creation.
c73fb4450e
2020-02-11 11:32:37 -08:00
Pavel Feldman
8a35f4023c
fix(events): deliver page.close upon disconnect in FF ( #929 )
2020-02-11 11:13:08 -08:00
Dmitry Gozman
c69dccf7c1
feat(click): use browser-provided scrollIntoViewIfNeeded ( #893 )
2020-02-11 10:30:09 -08:00
Pavel Feldman
72b9cf010e
feat(context): introduce BrowserContext close event ( #918 )
2020-02-11 10:27:19 -08:00
Meir Blachman
5fee93ae96
test: fix expect in jshandle spec ( #927 )
2020-02-11 09:26:23 -08:00
Pavel Feldman
780235479e
fix(firefox): bring headful window to front on launch ( #923 )
...
Fixes #914
2020-02-10 20:35:58 -08:00
Pavel Feldman
49eea19477
feat(webkit): roll webkit to 1141 ( #922 )
2020-02-10 20:04:39 -08:00
Pavel Feldman
29f4f18d6d
browser(webkit): allow beforeunload override when headful ( #921 )
2020-02-10 19:20:32 -08:00
Joel Einbinder
251ad38824
fix(navigations): remove LifecycleWatcher, fix flakes ( #882 )
2020-02-10 18:35:47 -08:00
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