mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: fix debug info message in test (#11864)
This commit is contained in:
parent
47c9fe5cd4
commit
8bd1a53697
@ -24,11 +24,8 @@ describe('DebugInfo', function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (browser.debugInfo.pendingProtocolErrors.length) {
|
// Insure that the previous test are flushed
|
||||||
throw new Error(
|
expect(browser.debugInfo.pendingProtocolErrors).toHaveLength(0);
|
||||||
'browser.debugInfo.pendingProtocolErrors is not empty before the test'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const promise = page.evaluate(() => {
|
const promise = page.evaluate(() => {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
|
Loading…
Reference in New Issue
Block a user