From 437d1b6247568a5a244fb11a7a97a3d8643af1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Mon, 11 May 2020 12:00:53 -0300 Subject: [PATCH] test: fix should poll on interval test (#2180) --- test/waittask.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/waittask.spec.js b/test/waittask.spec.js index baedeb1151..03b1ea9f9a 100644 --- a/test/waittask.spec.js +++ b/test/waittask.spec.js @@ -50,7 +50,7 @@ describe('Frame.waitForFunction', function() { } return Date.now() - window.__startTime; }, {}, {polling}); - expect(timeDelta).not.toBeLessThan(polling); + expect(await timeDelta.jsonValue()).not.toBeLessThan(polling); }); it('should throw on polling:mutation', async({page, server}) => { const error = await page.waitForFunction(() => true, {}, {polling: 'mutation'}).catch(e => e);