How do you ensure that cypress opens a file in the browser instead of downloading it?
Currently my code clicks on a button that opens the pdf in the browser when you using the local test runner. But when I do a run in headless mode, clicking the button downloads the file instead? How do I prevent it from downloading in headless mode?