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:
Rahul Lingala
2026-04-01 12:00:00 +08:00
committed by GitHub
parent d4f5d8dc48
commit bff6a24ddf
5 changed files with 854 additions and 1 deletions

View File

@@ -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');