()
| 213 | } |
| 214 | |
| 215 | async function resetPage() { |
| 216 | // Browser mode runs in Vitest's iframe instead of loading transition.html. |
| 217 | // Keep these specs on the same global build that `test-e2e` prepares. |
| 218 | resetPageErrorHandlers() |
| 219 | await vueGlobalBuildReady |
| 220 | resetHead() |
| 221 | localStorage.clear() |
| 222 | sessionStorage.clear() |
| 223 | document.body.innerHTML = '<div id="app"></div>' |
| 224 | } |
| 225 | |
| 226 | function getElement<T extends Element = Element>(selector: string): T { |
| 227 | const el = document.querySelector<T>(selector) |
no test coverage detected