mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
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;
|
||||
}, {}, {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);
|
||||
|
Loading…
Reference in New Issue
Block a user