From a4c0d58204c967d1b3d478f2f071f4820fd67492 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 3 Aug 2017 19:11:41 -0700 Subject: [PATCH] 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). --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 9309903dc75..43f946a1d7d 100644 --- a/test/test.js +++ b/test/test.js @@ -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; }