Chore: Make tests less flakey & upgrade puppeteer to rrweb-snapshot test suite to run (#1084)
* Upgrade puppeteer to 17.1.3 in rrweb-snapshot * Apply formatting changes * Add ? * Make tests less flakey * Make attribute-setting more explicit * Make test less flakey * Make test less flakey * Upgrade puppeteer for rrdom * Use wait for request animation frame instead of timeout * Force append to happen in second event * Wait till iframe was loaded (now 100ms) * Round the currentTime to 1 decimal place
This commit is contained in:
@@ -672,7 +672,7 @@ describe('record integration tests', function (this: ISuite) {
|
||||
await page.goto('about:blank');
|
||||
await page.setContent(getHtml.call(this, 'frame2.html'));
|
||||
|
||||
await page.waitForTimeout(10); // wait till frame was added to dom
|
||||
await page.waitForSelector('iframe'); // wait for iframe to get added
|
||||
await waitForRAF(page); // wait till browser loaded contents of frame
|
||||
|
||||
await page.evaluate(() => {
|
||||
|
||||
Reference in New Issue
Block a user