ignore removed move set

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 455c4d76f4
commit f511425d7e
2 changed files with 7 additions and 1 deletions

View File

@@ -227,6 +227,12 @@ export default class MutationBuffer {
}
for (const n of this.movedSet) {
if (
isParentRemoved(this.removes, n) &&
!this.movedSet.has(n.parentNode!)
) {
continue;
}
pushAdd(n);
}

View File

@@ -157,7 +157,7 @@ describe('record', function (this: ISuite) {
expect(this.events[35].type).to.equal(EventType.FullSnapshot);
});
it('is safe to checkout during async callbacks', async () => {
it.only('is safe to checkout during async callbacks', async () => {
await this.page.evaluate(() => {
const { record } = ((window as unknown) as IWindow).rrweb;
record({