Skip to content

Commit

Permalink
fix: call screencastOpts as a function for starting a screencast on e…
Browse files Browse the repository at this point in the history
…lectron. (#23001)

Co-authored-by: Mark Noonan <mark@cypress.io>
  • Loading branch information
mjhenkes and marktnoonan authored Jul 29, 2022
1 parent 85ee714 commit f147ebb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/lib/browsers/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const _getAutomation = async function (win, options, parent) {
// workaround: start and stop screencasts between screenshots
// @see https://github.com/cypress-io/cypress/pull/6555#issuecomment-596747134
if (!options.onScreencastFrame) {
await sendCommand('Page.startScreencast', screencastOpts)
await sendCommand('Page.startScreencast', screencastOpts())
const ret = await fn(message, data)

await sendCommand('Page.stopScreencast')
Expand Down Expand Up @@ -117,7 +117,7 @@ const _maybeRecordVideo = async function (webContents, options) {
}
})

await webContents.debugger.sendCommand('Page.startScreencast', screencastOpts)
await webContents.debugger.sendCommand('Page.startScreencast', screencastOpts())
}

module.exports = {
Expand Down
2 changes: 2 additions & 0 deletions packages/server/lib/modes/record.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,8 @@ const createRunAndRecordSpecs = (options = {}) => {
})

if (response === responseDidFail) {
debug('`responseDidFail` equals `response`, allowing browser to hang until it is killed: Response %o', { responseDidFail })

// dont call the cb, let the browser hang until it's killed
return
}
Expand Down

5 comments on commit f147ebb

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on f147ebb Jul 29, 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.4.0/linux-x64/develop-f147ebbcc63dcb8199472a9ae6a0b78a189ba428/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on f147ebb Jul 29, 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 arm64 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.4.0/linux-arm64/develop-f147ebbcc63dcb8199472a9ae6a0b78a189ba428/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on f147ebb Jul 29, 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 darwin arm64 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.4.0/darwin-arm64/develop-f147ebbcc63dcb8199472a9ae6a0b78a189ba428/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on f147ebb Jul 29, 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 darwin 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.4.0/darwin-x64/develop-f147ebbcc63dcb8199472a9ae6a0b78a189ba428/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on f147ebb Jul 29, 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.4.0/win32-x64/develop-f147ebbcc63dcb8199472a9ae6a0b78a189ba428/cypress.tgz

Please sign in to comment.