-
-
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
Karate contains only shortcut fails in v1.4.1 #2515
Comments
probably related to changes here, needs investigation #2170 |
That's an interesting one ... My understanding is that:
There are probably a few steps I missed/misunderstood, so feel free to correct me. But hopefully, the general idea is the right one. Basically, as soon as I can't think of any other way to fix the issue, but maybe someone else will have an idea... |
@f-delahaye yes this is a complicated one :| |
Actually ... there might be a solution. Line 278 is key, IMO. This method handles macros, which presumably are the same thing as shortcuts. So when ^^ ( @ptrthomas we could comment out line 278, so that With the line commented out, and using the standard syntax as opposed to the shortcuts: |
According to Karate documentation for contains short-cuts The following match arguments should pass only for the first expectation:
The second one should fail, because the expectation for the parameter "bla" is an object and not an array with an object in it.
I'm using Karate v1.4.1. The same scenario does work as i would assume with v1.2.0.
The text was updated successfully, but these errors were encountered: