chore: fix debug info message in test (#11864)

This commit is contained in:
Nikolay Vitkov 2024-02-07 10:38:06 +01:00 committed by GitHub
parent 47c9fe5cd4
commit 8bd1a53697
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 => {