diff --git a/npm/vue/CHANGELOG.md b/npm/vue/CHANGELOG.md index 36a6bc47d375..a9e7775c1e96 100644 --- a/npm/vue/CHANGELOG.md +++ b/npm/vue/CHANGELOG.md @@ -1,3 +1,10 @@ +# [@cypress/vue-v3.1.2](https://github.com/cypress-io/cypress/compare/@cypress/vue-v3.1.1...@cypress/vue-v3.1.2) (2022-05-03) + + +### Bug Fixes + +* head content reset, fix [#19721](https://github.com/cypress-io/cypress/issues/19721) ([#21291](https://github.com/cypress-io/cypress/issues/21291)) ([77ab6a5](https://github.com/cypress-io/cypress/commit/77ab6a51a0de1929171a2275e9cec9580c57241d)) + # [@cypress/vue-v3.1.1](https://github.com/cypress-io/cypress/compare/@cypress/vue-v3.1.0...@cypress/vue-v3.1.1) (2022-02-10) 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 }) })