Closed
Description
Describe the feature you'd like:
Adding support for asymmetricMatchers like expec.stringContaining as the value to toHaveAttribute
matcher
Eg:
expect(getByLabelText(/Download Template/)).toHaveAttribute(
"href",
expect.stringContaining("?type=instruments")
);
Suggested implementation:
Describe alternatives you've considered:
As of now this is achived by
expect(getByLabelText(/Download Template/).getAttribute("href")).toEqual(
expect.stringContaining("type=instruments")
);