From 3b16afd03d4a1d3fd6c5c134b431d1a114c6d7c2 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Mon, 2 May 2022 15:45:15 +0200 Subject: [PATCH] fix: head content reset, fix #19721 --- npm/vue/src/index.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/npm/vue/src/index.ts b/npm/vue/src/index.ts index 2476ba70c29e..6671a7d0d9e5 100644 --- a/npm/vue/src/index.ts +++ b/npm/vue/src/index.ts @@ -39,8 +39,6 @@ type CyMountOptions = Omit, 'atta } } & Partial -let initialInnerHtml = '' - Cypress.on('run:start', () => { // `mount` is designed to work with component testing only. // it assumes ROOT_ID exists, which is not the case in e2e. @@ -52,7 +50,6 @@ Cypress.on('run:start', () => { return } - initialInnerHtml = document.head.innerHTML Cypress.on('test:before:run', () => { Cypress.vueWrapper?.unmount() // @ts-ignore @@ -64,7 +61,6 @@ Cypress.on('run:start', () => { } el.innerHTML = '' - document.head.innerHTML = initialInnerHtml }) })