fix: can't record shadow root's children except the last one (#956)

* fix: can't record shadow root's children except the last one

* remove unnecessary type cast
This commit is contained in:
Yun Feng
2026-04-01 12:00:00 +08:00
committed by GitHub
parent f878cc032d
commit 60a9501293
4 changed files with 42 additions and 22 deletions

View File

@@ -561,6 +561,7 @@ describe('record integration tests', function (this: ISuite) {
const el = document.querySelector('.my-element') as HTMLDivElement;
const shadowRoot = el.shadowRoot as ShadowRoot;
shadowRoot.appendChild(document.createElement('span'));
shadowRoot.appendChild(document.createElement('p'));
sleep(1)
.then(() => {