Closed arsduo closed 5 years ago
Figured it out, apparently for Chrome browser.family
doesn't exist but browser.name
is chrome
. I'll take out a PR.
Hey @arsduo, thanks for the report. You should update your version of Cypress, family
was added in 3.2.0
and the latest release is 3.4.1
.
@flotwig, I'm getting this:
[cypress-log-to-output] Warning: An unsupported browser family was used, output will not be logged to console: chromium
@stevenvachon Logging the browser
object from the isChrome
function reveals why it doesn't return true from the Cypress defaults:
name: 'electron',
channel: 'stable',
family: 'chromium',
displayName: 'Electron',
version: '80.0.3987.165',
path: '',
majorVersion: 80,
info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.',
isHeadless: true,
isHeaded: false
function isChrome(browser) {
return browser.family === 'chrome' || ['chrome', 'chromium', 'canary'].includes(browser.name)
}
This is in version 1.0.8. But yeah it clearly doesn't work because the default is Electron even if the family is 'chromium'. Passing the browser flag at the Cypress run command should work for you: --browser chrome
.
Hi! I'm very excited about this plugin as it would help us diagnose a number of issues we see on Cypress; unfortunately I'm getting an error message:
This is happening even though we're using Chrome and I've added it to
cypress/plugins/index.js
exactly as described in the readme:Are there any issues with newer versions of Chrome, or could we be doing something wrong?
Thanks!