-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
browser: electrontype: regressionA bug that didn't appear until a specific Cy version releaseA bug that didn't appear until a specific Cy version releasev6.4.0 🐛Issue present since 6.4.0Issue present since 6.4.0
Description
Current behavior
Starting in Cypress 6.4.0, Clicking the 'Learn more' link containing a docsUrl from within the Command Log of the Test Runner crashes when running tests in Electron browser.
(node:84685) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See https://github.com/electron/electron/issues/23506 for more information
TypeError: Cannot read property 'show' of undefined
at Object._launch (/Users/jennifer/Library/Caches/Cypress/6.4.0/Cypress.app/Contents/Resources/app/packages/server/lib/browsers/electron.js:193:17)
at Object._launchChild (/Users/jennifer/Library/Caches/Cypress/6.4.0/Cypress.app/Contents/Resources/app/packages/server/lib/browsers/electron.js:189:17)
at BrowserWindow.onNewWindow (/Users/jennifer/Library/Caches/Cypress/6.4.0/Cypress.app/Contents/Resources/app/packages/server/lib/browsers/electron.js:137:22)
at Object.<anonymous> (/Users/jennifer/Library/Caches/Cypress/6.4.0/Cypress.app/Contents/Resources/app/packages/server/lib/gui/windows.js:192:36)
at Object.emit (events.js:315:20)
at Object.internalWindowOpen (electron/js2c/browser_init.js:181:2714)
at Object.<anonymous> (electron/js2c/browser_init.js:157:11014)
at Object.emit (events.js:315:20)
TypeError: Cannot read property 'show' of undefined
at Object._launch (/Users/jennifer/Library/Caches/Cypress/6.4.0/Cypress.app/Contents/Resources/app/packages/server/lib/browsers/electron.js:193:17)
at Object._launchChild (/Users/jennifer/Library/Caches/Cypress/6.4.0/Cypress.app/Contents/Resources/app/packages/server/lib/browsers/electron.js:189:17)
at BrowserWindow.onNewWindow (/Users/jennifer/Library/Caches/Cypress/6.4.0/Cypress.app/Contents/Resources/app/packages/server/lib/browsers/electron.js:137:22)
at Object.<anonymous> (/Users/jennifer/Library/Caches/Cypress/6.4.0/Cypress.app/Contents/Resources/app/packages/server/lib/gui/windows.js:192:36)
at Object.emit (events.js:315:20)
at Object.internalWindowOpen (electron/js2c/browser_init.js:181:2714)
at Object.<anonymous> (electron/js2c/browser_init.js:157:11014)
at Object.emit (events.js:315:20)
This is being thrown at this line of code: https://github.com/cypress-io/cypress/blob/develop/packages/server/lib/browsers/electron.js#L189:L189
Test code to reproduce
it('test', () => {
cy.clock('250')
})cypress openand select 'Electron' browser- Run test code above
- Click 'Learn More' when the test fails
Versions
Cypress 6.4.0
Metadata
Metadata
Assignees
Labels
browser: electrontype: regressionA bug that didn't appear until a specific Cy version releaseA bug that didn't appear until a specific Cy version releasev6.4.0 🐛Issue present since 6.4.0Issue present since 6.4.0