MCPcopy
hub / github.com/vuejs/core / resetPage

Function resetPage

packages/vue/__tests__/e2e/e2eBrowserUtils.ts:215–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers 2

gotoFunction · 0.85
resetFunction · 0.85

Calls 2

resetPageErrorHandlersFunction · 0.85
resetHeadFunction · 0.85

Tested by

no test coverage detected