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:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user