find links react testing library code example
Example: jest expect href
expect(getByText('Click Me').closest('a')).toHaveAttribute('href', 'https://www.test.com/')
expect(getByText('Click Me').closest('a')).toHaveAttribute('href', 'https://www.test.com/')