żart sprawdź link przycisku
expect(screen.getByText('Click Me').closest('a')).toHaveAttribute('href', 'https://www.test.com/')
Clean Cheetah
expect(screen.getByText('Click Me').closest('a')).toHaveAttribute('href', 'https://www.test.com/')