Fix tests in non-headless mode (#203)

The chrome-devtools://devtools/bundled/inspector.html is a perfectly
valid url in headful chromium, so we should pick another one for test
to work (and for the navigation inside the test to fail).
This commit is contained in:
Andrey Lushnikov 2017-08-03 19:11:41 -07:00 committed by GitHub
parent 82fbb268db
commit a4c0d58204

View File

@ -501,7 +501,7 @@ describe('Page', function() {
it('should fail when main resources failed to load', SX(async function() {
let error = null;
try {
await page.navigate('chrome-devtools://devtools/bundled/inspector.html');
await page.navigate('chrome-devtools://non-existing.html');
} catch (e) {
error = e;
}