()
| 199 | } |
| 200 | |
| 201 | function resetHead() { |
| 202 | Array.from(document.head.childNodes).forEach(node => { |
| 203 | if ( |
| 204 | !initialHeadNodes.has(node) && |
| 205 | !( |
| 206 | node instanceof HTMLStyleElement && |
| 207 | node.dataset.vueTransitionE2e != null |
| 208 | ) |
| 209 | ) { |
| 210 | node.remove() |
| 211 | } |
| 212 | }) |
| 213 | } |
| 214 | |
| 215 | async function resetPage() { |
| 216 | // Browser mode runs in Vitest's iframe instead of loading transition.html. |