behat-api-extension
behat-api-extension copied to clipboard
New step: "Then the response body does not contain JSON"
Missing a step to verify, that data does not exist in the API response.
So basically something like:
Then the response body is empty
?
@christeredvartsen the response body may be non-empty. I want to check, whether the JSON body contains a specific value. For example:
Then the response body does not contain JSON
"""
{
"foo": "bar"
}
"""
Ah, I see.
I can try to implement a step that does something like this and see how it ends up. I can have something testable in a few days.
@christeredvartsen I added a small PR with a proof of concept.