Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into ryanm/chore/merge-m…
Browse files Browse the repository at this point in the history
…aster
  • Loading branch information
ryanthemanuel committed May 9, 2022
2 parents 331e541 + 09bc8dc commit d26159e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions npm/vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
4 changes: 0 additions & 4 deletions npm/vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ type CyMountOptions<Props, Data = {}> = Omit<MountingOptions<Props, Data>, 'atta
}
} & Partial<StyleOptions>

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.
Expand All @@ -52,7 +50,6 @@ Cypress.on('run:start', () => {
return
}

initialInnerHtml = document.head.innerHTML
Cypress.on('test:before:run', () => {
Cypress.vueWrapper?.unmount()
// @ts-ignore
Expand All @@ -64,7 +61,6 @@ Cypress.on('run:start', () => {
}

el.innerHTML = ''
document.head.innerHTML = initialInnerHtml
})
})

Expand Down

0 comments on commit d26159e

Please sign in to comment.