Skip to content

"From a list of objects, assert on how many objects contain a specific key/value pair" #51

@SatheeshJM

Description

@SatheeshJM

Say I have a list

[{"foo" : "bar"}, {"foo: "bar2"}, {"foo" : "bar"},{"random":"1"}]

Is there a way of asserting that the list contains exactly 2 occurrences of {"foo":"bar"}

Can't seem to find anything in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions