https://cypress.io logo
Component testing - check redirect via button
# i-need-help
f
Hi, when using Component testing how can I test that by clicking on button that have href attr I will be redirected to that site? mount(
<my-button href="https://www.google.com/">Link</my-button>
);
3 Views