-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix: Adding overload to screenshot to fix type errors when overwriting this command. #27130
Merged
mike-plummer
merged 13 commits into
cypress-io:develop
from
0neMiss:fix-screenshot-overload
Jul 7, 2023
Merged
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8eaf27e
fixing overload match for case when screenshot is called while chaining.
0neMiss 60d3313
updating jsdocs example to correctly reflect the overflow matches for…
0neMiss 7ae610b
changelog
0neMiss 66429d9
merge conflict
0neMiss 067e86d
code comments
0neMiss 2d66993
code review changes
0neMiss 0109396
changelog again
0neMiss 2300a1d
fixing test
0neMiss 09503d0
Update types for implicit `subject`, add tests
mike-plummer d470d9d
Update changelog
mike-plummer a1887f6
Merge branch 'develop' into pr/27130
mike-plummer 56deaa9
Fix changelog
mike-plummer 4b11130
Merge branch 'develop' into fix-screenshot-overload
mike-plummer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 assuming the
context
parameter is meant to represent thesubject
from the previously-chained command? I think that should look more like this (note theChainable<Subject>
instead ofChainable<null>
) based on examples elsewhere in this fileThere 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.
Hey sorry! Yea I'm having a hard time getting the yarn install to work. Something about python versions and some microsoft tools. That's why I marked it as a draft because I haven't actually been able to run and build this locally yet.
I also saw that this check was failing and I wasn't sure what steps to take to resolve that. Any help on either of those things would be appreciated!
I'll update to fix the
Chainable<Subject>
and the changelog. I actually don't know why I called that variable context haha.I'll add those test cases as well, granted that I figure out this issue with running locally. If you have some suggestions for me to try i'd be happy to. Otherwise this might have to wait till later this week when I'm a little more available.
Thanks for taking a look @mike-plummer
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.
@mike-plummer Ready for another pass I think!