puppeteer/test
Andrey Lushnikov fafd156d7b
fix(Page): support anchor navigation (#2338)
This patch fixes puppeteer navigation primitives to work with
same-document navigation.

Same-document navigation happens when document's URL is changed,
but document instance is not re-created. Some common scenarios
for same-document navigation are:
- History API
- anchor navigation

With this patch:
- pptr starts dispatching `framenavigated` event when frame's URL gets
changed due to same-document navigation
- `page.waitForNavigation` now works with same-document navigation
- `page.goBack()` and `page.goForward()` are handled correctly.

Fixes #257.
2018-04-09 23:38:20 -07:00
..
assets test: add test on Page.evaluateOnNewDocument with CSP (#2319) 2018-04-05 23:40:14 -07:00
fixtures fix(test): add missing test for making sure chrome is closed (#2109) 2018-03-07 09:01:43 +03:00
golden chore(test): simplify element screenshot tests (#2093) 2018-02-23 15:54:26 -08:00
server test: add test for page.waitForFunction with script CSP (#2305) 2018-04-03 15:21:08 -07:00
browser.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
CDPSession.spec.js test: refactor utils.waitForEvents into utils.waitEvent (#2336) 2018-04-09 15:46:05 -07:00
cookies.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
coverage.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
diffstyle.css Implement FrameManager 2017-06-21 14:11:52 -07:00
elementhandle.spec.js test(ElementHandle.boxModel): remake test to make it more readable (#2287) 2018-03-29 17:25:52 -07:00
frame.spec.js fix(Page): support anchor navigation (#2338) 2018-04-09 23:38:20 -07:00
golden-utils.js tests: drop jasmine test runner (#1519) 2017-12-07 16:37:22 -08:00
input.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
jshandle.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
network.spec.js test: refactor utils.waitForEvents into utils.waitEvent (#2336) 2018-04-09 15:46:05 -07:00
page.spec.js fix(Page): support anchor navigation (#2338) 2018-04-09 23:38:20 -07:00
puppeteer.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
target.spec.js test: refactor utils.waitForEvents into utils.waitEvent (#2336) 2018-04-09 15:46:05 -07:00
test.js fix(Page): support anchor navigation (#2338) 2018-04-09 23:38:20 -07:00
tracing.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
utils.js test: refactor utils.waitForEvents into utils.waitEvent (#2336) 2018-04-09 15:46:05 -07:00