mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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:
parent
82fbb268db
commit
a4c0d58204
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user