From 77ab6a51a0de1929171a2275e9cec9580c57241d Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Tue, 3 May 2022 17:58:56 +0200 Subject: [PATCH 1/2] fix: head content reset, fix #19721 (#21291) Co-authored-by: Zachary Williams --- 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 }) }) From 09bc8dcb28701a72f16aafaebc4bef52b49410c2 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 3 May 2022 12:45:59 -0400 Subject: [PATCH 2/2] chore: release @cypress/vue-v3.1.2 [skip ci] --- npm/vue/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) 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)