Skip to content

Commit

Permalink
fix rerun before/after hooks on navigation [remerge] (#7154)
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Mann <[email protected]>
  • Loading branch information
kuceb and brian-mann authored May 28, 2020
1 parent 5ac8c72 commit 9ca6ce2
Show file tree
Hide file tree
Showing 13 changed files with 2,725 additions and 161 deletions.
3 changes: 1 addition & 2 deletions packages/driver/src/cypress.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ class $Cypress {
this.mocha = null
this.runner = null
this.Commands = null
this._RESUMED_AT_TEST = null
this.$autIframe = null
this.onSpecReady = null

Expand Down Expand Up @@ -238,7 +237,7 @@ class $Cypress {
// mocha runner has begun running the tests
this.emit('run:start')

if (this._RESUMED_AT_TEST) {
if (this.runner.getResumedAtTestIndex() !== null) {
return
}

Expand Down
Loading

4 comments on commit 9ca6ce2

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 9ca6ce2 May 28, 2020

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.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.7.1/linux-x64/circle-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-340050/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.7.1/circle-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-340041/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 9ca6ce2 May 28, 2020

Choose a reason for hiding this comment

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

AppVeyor has built the win32 ia32 version of the Test Runner.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

Instructions are included below, depending on the shell you are using.

In Command Prompt (cmd.exe):

set CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.7.1/win32-ia32/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.7.1/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.tgz

In PowerShell:

$env:CYPRESS_INSTALL_BINARY = https://cdn.cypress.io/beta/binary/4.7.1/win32-ia32/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.7.1/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.tgz

In Git Bash:

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.7.1/win32-ia32/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.7.1/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.tgz

Using cross-env:

If the above commands do not work for you, you can also try using cross-env:

npm i -g cross-env
cross-env CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.7.1/win32-ia32/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.zip npm install https://cdn.cypress.io/beta/npm/4.7.1/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 9ca6ce2 May 28, 2020

Choose a reason for hiding this comment

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

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

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

Instructions are included below, depending on the shell you are using.

In Command Prompt (cmd.exe):

set CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.7.1/win32-x64/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.7.1/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.tgz

In PowerShell:

$env:CYPRESS_INSTALL_BINARY = https://cdn.cypress.io/beta/binary/4.7.1/win32-x64/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.7.1/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.tgz

In Git Bash:

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.7.1/win32-x64/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.7.1/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.tgz

Using cross-env:

If the above commands do not work for you, you can also try using cross-env:

npm i -g cross-env
cross-env CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.7.1/win32-x64/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.zip npm install https://cdn.cypress.io/beta/npm/4.7.1/appveyor-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-33176209/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 9ca6ce2 May 28, 2020

Choose a reason for hiding this comment

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

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

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.7.1/darwin-x64/circle-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-340068/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.7.1/circle-develop-9ca6ce25d07ecc9b0dbb50cec1236be9d22c0b09-340065/cypress.tgz

Please sign in to comment.