-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Only generate methods with supported types #238
Only generate methods with supported types #238
Conversation
52c3105
to
d00b2cc
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.
A few of the methods you removed use params which are actually primitives in disguise
@param duration The duration of the long press. | ||
|
||
@return A GREYAction that performs a long press on an element. | ||
*/static actionForLongPressWithDuration(duration) { |
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.
duration is CFTimeInterval
=== double
, no need to kill it
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.
Great, I will add this to the list
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.
@rotemmiz I double checked it, it is not included in the switch statement in method invocation Therefore we need to remove it for now. I will add this functionality while extending MethodInvocation
in the same manner. That way the commits are sane and make sense 👍
@@ -196,60 +148,6 @@ starting from the given start points. | |||
}; | |||
} | |||
|
|||
/*@return A GREYAction that scrolls to the given content @c edge of a scroll view. | |||
*/static actionForScrollToContentEdge(edge) { |
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.
edge is GREYContentEdge
, an ENUM, returns an NSString
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 would like to sanitize these enums. As the sanitizer isn't build yet I excluded them. My next goal is to readd these functions
|
||
@return A GREYAction that scrolls to the given content @c edge of a scroll view with the scroll | ||
action starting from the given start point. | ||
*/static actionForScrollToContentEdgeXOriginStartPercentageYOriginStartPercentage(edge, xOriginStartPercentage, yOriginStartPercentage) { |
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.
edge is an NSInteger
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.
Probably needs to be normalized like you did before
30 degrees). | ||
|
||
@return A GREYAction that performs a fast pinch on the view in the specified @c direction. | ||
*/static actionForPinchFastInDirectionWithAngle(pinchDirection, angle) { |
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.
direction is NSInteger
@param on The switch control state. | ||
|
||
@return A GREYAction to toggle a UISwitch. | ||
*/static actionForTurnSwitchOn(on) { |
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.
yea, we have problems with bools
@param column The UIPickerView column being set. | ||
@param value The value to set the UIPickerView. | ||
|
||
@return A GREYAction to set the value of a specified column of a UIPickerView. |
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 was this removed?
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.
This was 100% a mistake!
@param date The date to set the UIDatePicker. | ||
|
||
@return A GREYAction that sets a given date/time on a UIDatePicker. | ||
*/static actionForSetDate(date) { |
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.
:(
@param duration The duration of the long press. | ||
|
||
@return A GREYAction that performs a long press on an element. | ||
*/static actionForLongPressAtPointDuration(point, duration) { |
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.
same goes here
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.
Still need to end generation end to end tests.
d00b2cc
to
e275e26
Compare
e275e26
to
71b6b4d
Compare
Added the tests and verified the comments you made. These functions should mostly be unsupported and I would add them together with the change in the iOS mapping in MethodInvocation as we add new functionality. <3 I would merge this as soon as I see the tests green, we can still make changes afterwards 👍 |
We currently generate code that isn't supported by the detox client.
This causes confusion amongst developers adopting the generated code (see #228).