Skip to content

Add expectations for testing JSON #4

@emhoracek

Description

@emhoracek

Functions like shouldHaveText should include JSON text.

Also add functions that look for fields in JSON.

Example of problem:

  1) should not create an order with invalid data
       Json (RespCode 200) "[[\"error\",\"Invalid form fields\"]]" does not contain: error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions