Open saw-jan opened 3 years ago
what would be handy for us is something like
groups.containsExactly('element', '{}', group => {
group.appendText(config.testGroup)
}, 1)
so that the check ends up not only testing the type but also the content, but only for that one element and ignore all other elements
Before making a feature request, I have:
Background
Currently, we are using Xml builder as below inorder to check that the response has similar xml
This checks by
type
i.e. has<element>
with somestring
Feature description
In XmlBuilder, a way to check the presence of an element by its exact text value in the list of elements (don't care about other element's values)
Use case
We have response like:
We wanted to check that
<groups>
has<element>
with textg102
but don't care about<element>users</element>
and other<element>
s inside<groups>