From 8bd1a536975bd07e720d1cd3e99168099b364bf3 Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com> Date: Wed, 7 Feb 2024 10:38:06 +0100 Subject: [PATCH] chore: fix debug info message in test (#11864) --- test/src/debugInfo.spec.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/src/debugInfo.spec.ts b/test/src/debugInfo.spec.ts index 4ff5960e516..4f792316670 100644 --- a/test/src/debugInfo.spec.ts +++ b/test/src/debugInfo.spec.ts @@ -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 => {