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) {
throw new Error(
'browser.debugInfo.pendingProtocolErrors is not empty before the test'
);
}
// Insure that the previous test are flushed
expect(browser.debugInfo.pendingProtocolErrors).toHaveLength(0);
const promise = page.evaluate(() => {
return new Promise(resolve => {