Skip to content

Commit

Permalink
fix: transition eventManager errors (#19835)
Browse files Browse the repository at this point in the history
* add wrapper div for transition

* clean up `initialized` value when unmounting

* formatting
  • Loading branch information
marktnoonan authored Jan 24, 2022
1 parent 096c4eb commit 5cac74c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
44 changes: 23 additions & 21 deletions packages/app/src/pages/Specs/Runner.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
<template>
<!--
Run Mode is a more minimal UI.
It does not render things like the SpecList,
Side and Top Nav, etc.
It also has no GraphQL dependency.
-->
<SpecRunnerContainerRunMode
v-if="isRunMode"
:run-mode-specs="specs"
/>

<!--
Open Mode is the full Cypress runner UI -
including things like the SpecList,
Side and Top Nav, Selector Playgroundn etc.
It is driven by GraphQL and urql.
-->
<SpecRunnerContainerOpenMode
v-else-if="query.data.value?.currentProject?.specs"
:gql="query.data.value"
/>
<div>
<!--
Run Mode is a more minimal UI.
It does not render things like the SpecList,
Side and Top Nav, etc.
It also has no GraphQL dependency.
-->
<SpecRunnerContainerRunMode
v-if="isRunMode"
:run-mode-specs="specs"
/>

<!--
Open Mode is the full Cypress runner UI -
including things like the SpecList,
Side and Top Nav, Selector Playgroundn etc.
It is driven by GraphQL and urql.
-->
<SpecRunnerContainerOpenMode
v-else-if="query.data.value?.currentProject?.specs"
:gql="query.data.value"
/>
</div>
</template>

<script lang="ts" setup>
Expand Down
1 change: 1 addition & 0 deletions packages/app/src/runner/unifiedRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export function useUnifiedRunner () {

onBeforeUnmount(() => {
UnifiedRunnerAPI.teardown()
initialized.value = false
})

return {
Expand Down

2 comments on commit 5cac74c

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 5cac74c Jan 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.0.0/circle-10.0-release-5cac74c5aa2238cc7fc89059a520ff0343189bff/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 5cac74c Jan 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.0.0/circle-10.0-release-5cac74c5aa2238cc7fc89059a520ff0343189bff/cypress.tgz

Please sign in to comment.