-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Switch to using more official browser brand icons #5991
Switch to using more official browser brand icons #5991
Conversation
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
|
@hiramzamorano Thanks for the contribution! Could you please sign our CLA? #5991 (comment) |
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.
- All of the tests verifying the icons are correct have been removed. We need tests that the correct image displays, not just any image. Removing the test for the custom browser, I can already manually see that the image is incorrect. This could be as simple as adding a class to each img, so testing that when Chrome is selected that the
img.chrome
is shown. - We need a custom 'globe' icon for browsers that are not defined. Users can pull in custom browsers (like Brave) and we don't want them to show up as Electron.
Hi @jennifer-shehane, thanks for the feedback, i'm going to fix those issues :) |
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.
The icons are not all the same width and height, which makes them not line up properly vertically in the dropdown and also the defaultBrowser icons doesn't line up vertically in the selection when selected.
without guidelines
with guidelines to show horizontal and vertical places that are not aligned.
…into issue-5921
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 made a few commits to add back a missing test and fix the aligning of the icon in the selection.
My final comment is about the default generic icon. It doesn't look great to be honest. Is there a nicer looking 'world/globe' / generic browser icon you can use? It also shows up much larger than the other icons for some reason even thought the width and height are 16.
You're right @jennifer-shehane , we can improve the default generic icon to make it look better. What do you think? |
@hiramzamorano I prefer #5. Thanks for providing the options. 👍 |
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.
@hiramzamorano I am not seeing any actual change in the display/alignment after the latest change.
You can see this view by in the packages/desktop-gui
directory running npm run watch
then opening a new terminal and running npm run cypress:open
. In here run the project_nav_spec
and run the custom browser available
set of tests. Select 'Chrome' which will put the Foo browser in the dropdown.
The electron logo should not be electron - it should be dark Chrome. Our users don't care what the version of Electron is, they care about the version of Chromium that electron ships with. On second thought - it may make more sense to use the Electron icon with the |
@hiramzamorano The team decided to revert this commit per these comments. #6141 (comment) You're welcome to open a new PR. I'm sorry for the outcome of this. No one expressed their differing opinions from the team until after it was merged unfortunately. |
User facing changelog
We replaced the browser icons in the Test Runner with more official browser brand icons.
How has the user experience changed?
Before
After
PR Tasks