Javascript – Using Cypress, how can I test that attempting to close a tab results in a confirmation box being displayed?
I want to test that closing a tab (or reloading the tab) results in a confirmation box being displayed. If the user clicks 'cancel', the confirmation box should disappear and the page didn't reload. I tried to test this with…