Then the API response should contain "text"

Checks that API response body contains specific text.

Step pattern

Then (?:the )?API response should contain "([^"]*)"

Examples

Example #1
Then the API response should contain "success"
Example #2
Then API response should contain "John Doe"
Example #3
Then the API response should contain "Webship.co"
Example #4
Then API response should contain "UN"
Example #5
Then the API response should contain "published"
Example #6
Then API response should contain "id"
Example #7
Then the API response should contain "email"
Example #8
Then API response should contain "hello@un.org"