I can find an element by its text and check that it's a link with:
const Link = Parent.getByText('This is a link', { exact: false });
expect(Link).toHaveAttribute('href', 'www.somewhere.com');
How can I check this other element (which I find by text) is not a link?
const NotALink = Parent.getByText('Not a link', { exact: false });