-
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
detect Microsoft Edge and Edge Canary browsers and allow running tests in them #6181
Conversation
merge develop
fix lint errors
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add Edge to Circle in either the OSX or Windows container.
Have it run only a single test to verify its working (since its really just Chromium)
{ | ||
name: 'edgeCanary', | ||
family: 'chrome', | ||
displayName: 'Edge Canary', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add Edge Dev & Beta? Contrary to Chrome, they can all be installed in parallel on both Windows & macOS with separate profiles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's land this change in 4.0 and then add Edge Dev and Beta separately, there are lots of changes going in, unfortunately ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you have EdgeDev in the browser_spec? https://github.com/cypress-io/cypress/pull/6181/files#diff-c15b51d04b162559d1996b46f9c5b209
I agree that these should just be pushed into this PR. What's the reason to wait it's just a few extra fields? Firefox has Dev and Nightly in its PR. I need to consider these values when generating the icons because we need the exact names to pull against so I've already added them in there for testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added detection for Windows + a best guess at detection for macOS in
ca0d69f. Verified working on Windows:
Since I'm on Linux, can someone with a Mac verify that it detects Beta and Dev correctly? You can get the downloads here: https://www.microsoftedgeinsider.com/en-us/download?platform=macos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try it out on MacOS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved Edge (stable) up so it appears before the other variants.
The order is a bit weird, though - I'd expect it to be: stable, beta, dev & canary, so that they're sorted by stability & the planned release date. Having: stable, canary, beta, dev seems quite random.
6e28b78
to
a0eddc2
Compare
@bahmutov / @chrisbreiding this PR looks super borked - likely after the force push to 4.0 Can we get it cleaned up for release? |
b05d0df
to
08c4073
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me once Edge Dev + Edge Beta are manually verified on macOS: #6181 (comment)
we could also sort each browser family by major version?
…On Fri, Jan 31, 2020 at 3:55 PM Chris Breiding ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In packages/launcher/lib/browsers.ts
<#6181 (comment)>:
> @@ -28,6 +28,22 @@ export const browsers: Browser[] = [
profile: true,
binary: 'google-chrome-canary',
},
+ {
+ name: 'edgeCanary',
+ family: 'chrome',
+ displayName: 'Edge Canary',
Looks good on MacOS!
[image: Screen Shot 2020-01-31 at 3 54 39 PM]
<https://user-images.githubusercontent.com/1157043/73573719-13dcf700-4442-11ea-975c-b21aca17fb87.png>
I moved Edge (stable) up so it appears before the other variants.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6181?email_source=notifications&email_token=AAQ4BJSPVBRDC5RL3BAQOSDRASF5VA5CNFSM4KHZ2WP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCT3Z3VI#discussion_r373681332>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ4BJRXYET5MW326IAOXFDRASF5VANCNFSM4KHZ2WPQ>
.
--
Dr. Gleb Bahmutov, PhD
Schedule video chat / phone call / meeting with me via
https://calendly.com/bahmutov
gleb.bahmutov@gmail.com @bahmutov <https://twitter.com/@bahmutov>
https://glebbahmutov.com/ https://glebbahmutov.com/blog
https://github.com/bahmutov
|
User facing changelog
If there is Edge or Edge Canary/Dev/Beta browser, it appears in the list of browsers
The user can pick Edge or Edge Canary and run tests
It can also run tests from command line with
cypress run --browser edge
orcypress run --browser edge:canary
,--browser edge:dev
, etcYou can run both browsers in headless mode by adding
--headless
flag.Additional details
How has the user experience changed?
PR Tasks
cypress-documentation
? add edge to the list of browsers cypress-documentation#2416Tasks after landing this PR
4.0.0
) and make sure they are passing with the new binary