test: fix should poll on interval test (#2180)
This commit is contained in:
parent
ae8d97cdf9
commit
437d1b6247
|
|
@ -50,7 +50,7 @@ describe('Frame.waitForFunction', function() {
|
||||||
}
|
}
|
||||||
return Date.now() - window.__startTime;
|
return Date.now() - window.__startTime;
|
||||||
}, {}, {polling});
|
}, {}, {polling});
|
||||||
expect(timeDelta).not.toBeLessThan(polling);
|
expect(await timeDelta.jsonValue()).not.toBeLessThan(polling);
|
||||||
});
|
});
|
||||||
it('should throw on polling:mutation', async({page, server}) => {
|
it('should throw on polling:mutation', async({page, server}) => {
|
||||||
const error = await page.waitForFunction(() => true, {}, {polling: 'mutation'}).catch(e => e);
|
const error = await page.waitForFunction(() => true, {}, {polling: 'mutation'}).catch(e => e);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue