Andrey Lushnikov
fbf36438e8
feat(firefox): support Request.postData ( #3999 )
2019-02-13 13:11:50 -08:00
Andrey Lushnikov
13224a761e
feat(firefox): support Response.securityDetails() ( #3997 )
2019-02-13 11:56:51 -08:00
Andrey Lushnikov
57e7f12fbc
test: split out tests for security details ( #3996 )
...
This adds missing test coverage for security details and
re-generates our self-signed ceritificate to have meaningful
issuer and subject name.
2019-02-13 11:35:49 -08:00
Andrey Lushnikov
31ae1d6d15
feat(firefox) support Request.headers() & Response.headers() ( #3993 )
2019-02-13 00:55:56 -08:00
Andrey Lushnikov
89d0f1e1e7
feat(firefox): implement frame.goto / frame.waitForNavigation ( #3992 )
...
Some corner cases regarding iframes being detached during navigation
are not yet supported.
2019-02-12 20:10:53 -08:00
Andrey Lushnikov
f0fba56ea3
test: split out Response.fromCache/fromServiceWorker ( #3990 )
2019-02-12 19:59:54 -08:00
Andrey Lushnikov
1890dc04ba
feat(firefox): Page.waitForRequest/Page.waitForResponse ( #3989 )
...
Drive-by: refactor `Request.frame()` tests into a separate test suite.
2019-02-12 19:10:14 -08:00
Andrey Lushnikov
afb9355b15
feat(firefox): basic support for Network ( #3988 )
...
This patch introduces basic Request and Response events for
page. It also teaches navigation methods, e.g. `page.goto` to return
navigation response.
2019-02-12 17:38:48 -08:00
Joel Einbinder
fb9d4049d8
test(mouse): add failing for test for mobile + cross process navigation ( #3951 )
2019-02-11 14:00:06 -08:00
Andrey Lushnikov
63ea8055e0
feat(chromium): roll Chromium to r630727 ( #3985 )
...
Just a healthy roll.
2019-02-11 13:59:17 -08:00
Andrey Lushnikov
b82cc150d1
feat(firefox): support Page.setJavascriptEnabled ( #3970 )
...
This patch implements:
- Page.setJavascriptEnabled
- Page.setCacheEnabled
2019-02-08 20:57:16 -08:00
Andrey Lushnikov
edb6f62824
feat(firefox): support page.setDefaultNavigationTimeout ( #3969 )
...
This patch supports:
- page.setDefaultNavigationTimeout
- page.setDefaultTimeout
2019-02-08 20:37:14 -08:00
Andrey Lushnikov
fc18a79e99
feat(firefox): support Page.setUserAgent method ( #3968 )
2019-02-08 19:53:27 -08:00
Andrey Lushnikov
1ce578b787
chore(test): remove the server.EMPTY_PAGE2 asset ( #3967 )
...
Firefox used to have a bug that prevented adding iframes with the
same URL as main frame. In this case, we used the EMPTY_PAGE2
so that it doesn't clash with top-level EMPTY_PAGE.
The bug seems to be fixed after we rolled onto a fresh Firefox;
there's no more need for this test asset.
2019-02-08 19:24:40 -08:00
Andrey Lushnikov
cfefd611b8
feat(firefox): support target.opener() and page.on('popup') ( #3966 )
2019-02-08 19:21:54 -08:00
Andrey Lushnikov
0cf6ab68e7
feat(firefox): support page.browserContext() ( #3965 )
2019-02-08 18:58:40 -08:00
Andrey Lushnikov
c64e02e7c2
refactor(firefox): introduce FrameManager ( #3964 )
...
Split out frame management from Page into FrameManager.
FrameManager will keep track of page's frames and DOMWorlds.
2019-02-08 18:54:11 -08:00
Andrey Lushnikov
2a7ed1ada7
fix(firefox): add ExecutionContext to api ( #3963 )
2019-02-08 17:35:16 -08:00
Andrey Lushnikov
a9875359aa
feat(firefox): implement execution contexts ( #3962 )
2019-02-08 17:15:52 -08:00
Andrey Lushnikov
569609636e
chore(testrunner): newline for toEqual matcher ( #3959 )
2019-02-08 16:18:45 -08:00
Andrey Lushnikov
0bb657cb26
chore(test): remove --firefox-status flag from tests ( #3956 )
...
The [IsPuppeteerFirefoxReady?](https://aslushnikov.github.io/ispuppeteerfirefoxready/ )
website now has its own script to compute test and api coverage.
2019-02-08 13:29:13 -08:00
Andrey Lushnikov
07b43ff29a
chore: remove Juggler from Puppeteer repository ( #3954 )
...
This patch removes Juggler from Puppeteer repository. Instead,
Juggler development is hosted now at
https://github.com/puppeteer/juggler
2019-02-08 13:28:43 -08:00
Andrey Lushnikov
72c00474e7
refactor(firefox): introduce /lib/Events ( #3949 )
...
Declare all events in `/lib/Events.js`, similarly to how
we do it in Puppeteer.
2019-02-07 18:03:48 -08:00
Andrey Lushnikov
6b18e8cef5
feat(firefox): introduce async stacks for Puppeteer-Firefox ( #3948 )
...
This patch refactors Puppeteer-Firefox code to declare public
API in `/lib/api.js` and use it to setup async stack hooks
over the public API method calls.
2019-02-07 15:18:43 -08:00
Andrey Lushnikov
9216056d12
fix(testrunner): fix bad test counter ( #3947 )
2019-02-07 13:26:35 -08:00
Andrey Lushnikov
addd7f4c6a
chore(testrunner): introduce verbose mode ( #3946 )
2019-02-07 13:17:29 -08:00
Andrey Lushnikov
c33be4cae4
refactor(firefox): split out JSHandle into a separate file ( #3945 )
2019-02-07 09:39:31 -08:00
Andrey Lushnikov
76eecde823
chore(test): remove stray console.log ( #3943 )
2019-02-07 08:14:05 -08:00
Andrey Lushnikov
609e763381
test(firefox): enable screenshot tests for Firefox ( #3942 )
...
References #3889
2019-02-07 07:59:14 -08:00
Andrey Lushnikov
49e8704ba8
test(firefox): enable more tests on Puppeteer-Firefox ( #3937 )
...
References #3889
2019-02-07 07:15:19 -08:00
Andrey Lushnikov
96792793ea
chore(ci): enable firefox on travis ( #3935 )
...
References #3889
2019-02-06 16:34:38 -08:00
Andrey Lushnikov
a762dbe96f
chore(ci): add Puppeteer-Firefox to CI ( #3932 )
...
This patch adds Puppeteer-Firefox bot running on Linux+Node8
on Cirrus CI.
References #3889
2019-02-06 14:28:02 -08:00
Andrey Lushnikov
6887ad881a
chore: further unify Puppeteer-Firefox tests with Puppeteer ( #3931 )
...
This patch:
* unifies assets between tests
* enables a few puppeteer tests on Puppeteer-Firefox
Drive-by: beautify failing output of `expect.toEqual` matcher.
References #3889
2019-02-06 13:49:14 -08:00
Paul Irish
c3b6619432
chore(firefox): readme link to isready site ( #3930 )
2019-02-06 10:06:36 -08:00
Andrey Lushnikov
14fb3e38db
chore(firefox): mark all Puppeteer tests that are failing on FF ( #3924 )
...
This patch:
- introduces new testRunner methods `addTestDSL` and `addSuiteDSL`
to add annotated test / suite.
- introduces new test/suite declaration methods: `it_fails_ffox` and
`describe_fails_ffox`. These are equal to `it`/`describe` for chromium
tests and to `xit`/`xdescribe` for firefox.
- marks all unsupported tests with `it_fails_ffox`
- adds a new command-line flag `'--firefox-status'` to `//test/test.js`.
This flag dumps current amount of tests that are intentionally skipped
for Firefox.
End goal: get rid of all `it_fails_ffox` and `describe_fails_ffox`
tests.
Drive-By: remove cookie tests "afterEach" hook that was removing
cookies - it's not needed any more since every test is run in a
designated browser context.
References #3889
2019-02-05 22:32:41 -08:00
Andrey Lushnikov
86783c2495
chore(firefox): run all tests without "UnhandledPromiseRejection" error ( #3922 )
...
This aligns all Puppeteer tests so that they never throw the
"UnhandledPromiseRejection" when run with Puppeteer-Firefox.
With this patch, the `npm run funit` passes 275 of 460 Puppeteer tests.
References #3889 .
2019-02-05 19:49:47 -08:00
Andrey Lushnikov
bc71e9236d
chore(testrunner): nicer colors for test reporter ( #3921 )
2019-02-05 19:02:29 -08:00
Andrey Lushnikov
1676f9927c
chore(firefox): move sources from //lib/firefox to //lib ( #3920 )
2019-02-05 18:56:04 -08:00
Andrey Lushnikov
a210dd7ee2
chore(testrunner): show 5 slowest tests on CI ( #3919 )
...
Show top slowest tests on CI.
Drive-by: some facelifting for the test reporter.
2019-02-05 15:28:35 -08:00
Andrey Lushnikov
00bcecbf72
chore: increase test timeout to 20 seconds on Appveyour ( #3918 )
...
Looks like Appveyour is indeed slow; try giving it more time
to run tests.
Drive-by: support TIMEOUT env variable for Puppeteer tests.
2019-02-05 13:38:56 -08:00
Andrey Lushnikov
28087c291f
feat(firefox): support ElementHandle.contentFrame() ( #3917 )
2019-02-05 13:29:49 -08:00
Andrey Lushnikov
dd8bd6dcb1
test(firefox): support Puppeteer-Firefox specific env variables ( #3907 )
...
This patch:
- adds support to `FFOX` env variable for Puppeteer testsuite
- install Firefox preferences when running tests with custom firefox
executable
References #3889
2019-02-05 13:17:02 -08:00
Andrey Lushnikov
e1000009a5
docs(api.md): update versions ( #3916 )
2019-02-05 12:46:31 -08:00
Andrey Lushnikov
a760d79c86
chore: bump version to v1.12.2-post ( #3915 )
2019-02-05 12:00:15 -08:00
Andrey Lushnikov
b0afb17b68
chore: mark version v1.12.2 ( #3914 )
2019-02-05 11:38:04 -08:00
Joel Einbinder
6e1f7dc992
feat(chromium): roll chromium to r624492 ( #3909 )
...
This roll includes:
- https://crrev.com/624492 - Disable sending KeyUpdates by default.
Fixes #3893 , #3880
2019-02-05 11:25:18 -08:00
Andrey Lushnikov
69c434af75
test(firefox): further unify Puppeteer-Firefox and Puppeteer tests ( #3894 )
...
This patch:
- changes Puppeteer-Firefox plumbing of defaultBrowserOptions to align
with the way we do it for Puppeteer.
- plumbs puppeeteer-dependent Errors and DeviceDescriptors down to every
test.
- unifies a few tests between Puppeteer-Firefox and Puppeteer.
**Note:** in future, we should expose errors as `puppeteer.errors` and
device descriptors as `puppeteer.devices` to make it easy to pass around
Puppeteer/Puppeteer-Firefox instance.
References #3889 .
2019-02-02 18:49:12 -07:00
Andrey Lushnikov
47fbb117f5
test(firefox): add more Puppeteer-Firefox tests to Puppeteer ( #3892 )
...
References #3889
2019-02-02 12:55:15 -07:00
Andrey Lushnikov
b5e53fdbf4
test(firefox): add puppeteer-firefox unique evaluation tests ( #3891 )
...
References #3889
2019-02-01 18:40:40 -08:00
Andrey Lushnikov
6bb0350b4d
test(firefox): introduce vendor-specific specs ( #3890 )
...
Certain Puppeteer methods do expose the inner browser - e.g.
`browser.version()` depends on the browser we run.
Split out these tests into a vendor-specific test suites.
References #3889
2019-02-01 17:55:12 -08:00