-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS not detecting Microsoft Edge as a launch-able browser #6354
Comments
I am experiencing the same issue. I have Edge, Edge Beta, Edge Canary, and Edge Developer all installed on my system - none of which are detected. WorkaroundFind the location that Microsoft Edge is installed in and run that with the My path was This will pre-select the found browser and it's called Similarly for For debuggingLogging the
module.exports = (on, config) => {
on('before:browser:launch', (browser = {}, launchOptions) => {
console.log(browser)
})
} {
name: 'edge',
family: 'chromium',
channel: 'stable',
displayName: 'Custom Edge',
versionRegex: {},
profile: true,
binary: 'edge',
info: 'Loaded from /Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge',
custom: true,
path: '/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge',
version: '79.0.309.71',
majorVersion: 79,
isHeadless: false,
isHeaded: true
} |
The above solution seems to be working ok for me so far. Thanks @jennifer-shehane |
It looks like in the
instead of Canary shows
|
I think I have found the issue affecting firefox nightly, and edge builds. These apps for chrome and firefox have 4 params in https://github.com/cypress-io/cypress/blob/develop/packages/launcher/lib/darwin/index.ts
These for firefox nightly and edge have 3
There needs to be a 4th param for detectFirefoxNightly
For edge, it should be
This is because findApp function in utils.ts (https://github.com/cypress-io/cypress/blob/develop/packages/launcher/lib/darwin/util.ts) takes 4 parameters
|
It also looks like the com.microsoft.edgemac so edge should probably be
|
Please see #6364 |
The code for this is done in cypress-io/cypress#6364, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
Running cypress open fails to detect edge as selectable browser in the dropdown. Have tried using cypress run --browser edge (which tells me it can't detect an edge browser) as well as providing an absolute path of
cypress run --browser /Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge
That seems to run electron in the terminal instead of edge though this could just be because cypress hasn't been setup to run edge headlessly. I double checked that I had edge installed and the binary was in the place I expected it to be.
This file https://github.com/cypress-io/cypress/blob/develop/packages/launcher/lib/darwin/index.ts
indicates where cypress is looking so I am a bit stumped.
(Just noticed that the const detectEdge doesn't provide "Microsoft Edge.app" line like say the const detectFirefox does on line 27 of the link I provided above. Might that be the issue?
Desired behavior:
Edge binary should be automatically detected by cypress.
Test code to reproduce
Install edge(chromium) for MacOS
npm init
npm install cypress@latest
cypress open
Versions
MacOS Mojave 10.14.6, Microsoft Edge (non dev or canary builds), cypress 4.0.0, node 12.0.0
The text was updated successfully, but these errors were encountered: