Fix mutation edge case when blocked class gets unblocked (#867)
* Fix mutation edge case when blocked class gets unblocked * Add integration test * Update isSerialized logic
This commit is contained in:
@@ -326,6 +326,21 @@ describe('record integration tests', function (this: ISuite) {
|
||||
assertSnapshot(snapshots);
|
||||
});
|
||||
|
||||
it('mutations should work when blocked class is unblocked', async () => {
|
||||
const page: puppeteer.Page = await browser.newPage();
|
||||
await page.goto('about: blank');
|
||||
await page.setContent(getHtml.call(this, 'blocked-unblocked.html'));
|
||||
|
||||
const elements1 = await page.$x('/html/body/div[1]/button');
|
||||
await elements1[0].click();
|
||||
|
||||
const elements2 = await page.$x('/html/body/div[2]/button');
|
||||
await elements2[0].click();
|
||||
|
||||
const snapshots = await page.evaluate('window.snapshots');
|
||||
assertSnapshot(snapshots);
|
||||
});
|
||||
|
||||
it('should record DOM node movement 1', async () => {
|
||||
const page: puppeteer.Page = await browser.newPage();
|
||||
await page.goto('about:blank');
|
||||
|
||||
Reference in New Issue
Block a user