-
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
chore: WebKit support (development-only) #15533
Conversation
Thanks for taking the time to open a PR!
|
Any updates on this? |
Test summaryRun details
View run in Cypress Dashboard ➡️ FlakinessThis 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 |
Still going over the code, but I took it for a test drive. It functions like it should, but I am noticing everything in the webkit driver is kind of blurry. Compare the text from GH (left) and the spec list (right). I am guessing this isn't on our end, but the webkit-playwright code? Either way, users might notice this - we might want to include a note in the experimental release (unless the bug is localised to my machine?) I am on an M1 running under arm64 if that is relevant. I will continue the code review tomorrow. I am excited for WebKit support! Image: text in webkit browser is a bit blurry (compare to address bar or GH text in background). |
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'm still working through the code - posted my finding so far, but functionality seems to work as expected.
@lmiller1990 I can confirm I see the same blurry rendering on my Macbook display, but it looks crisp on my external display (with a much lower pixel density). |
@lmiller1990 @tbiethman We check and set 2x pixel density on other browsers but not in WebKit. I can add it to the list of things to fix in the parent epic, but in the spirit of keeping this PR minimal let's not worry about it here. It seems like we can set |
Code looks good in this initial state. Here are a couple functional findings that don't necessarily need to hold up this initial PR, but I'll let you be the judge: macOS
Windows
|
@tbiethman Thanks for the detailed feedback!
Marked it as "less critical" here: #6422 I'm using
Added as a must-fix to #6422
I have noticed some failures in the driver tests related to focus, thanks for the tip on this. I'll keep this in mind when looking at those.
Not known to me yet - I've been working on fixing the driver tests first before checking out other projects, since that should resolve most common issues. I plan on also adding certain system-tests. Limitations that come from those will be documented. |
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.
Left some comments, they are mainly related to style, though - still trying the functionality out.
I found something strange. I don't think it needs to block this, but if I start run mode, then cancel it mid-run, global mode opens after a few seconds. It's also kind of slow (I guess this is just how it is, at least for now). Since this is development only, I think it's fine to merge up, I'll keep posting things I notice as I continue to play around with it (which will be easier once it's merged). bug.mov |
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.
Left some potential improvements to code and noted a weird bug I encountered.
@lmiller1990 I've noticed that too. Haven't been able to track it down yet, but it's super annoying. I have it captured as a must-fix here: #6422 |
Any plans to mention my name when release this feature? |
@weyert - Traditionally we'd do something like this: https://docs.cypress.io/api/commands/selectFile#Community-Recognition. @flotwig - I don't see that we have a docs PR for this, just a reasonable reminder to make sure we mention community contributions when it's ready! |
@weyert I was planning on it, since this does use your initial approach of driving PW. I actually meant to have you as a |
I would greatly appreciate that, if you would do that. Thank you 🤗❤️ |
User facing changelog
n/a - does not expose WebKit in production yet, only in development
Additional details
playwright-webkit
installed in a project and if it is found, it will be made available in Cypress as--browser webkit
Pre-merge tasks:
How has the user experience changed?
In development only, WebKit will be detected in run/open mode if
playwright-webkit
is installed.PR Tasks
cypress-documentation
?type definitions
?Co-authored-by: Weyert de Boer [email protected]