How to login to OWA for performing e2e testing of outlook onSend add-in
Hi,
I want to perform e2e testing of my outlook onSend add-in in OWA. I'm using cypress for the tests. I'm able to successfully test the add-in if I'm already logged-in in OWA. But if I'm not, which will be the actual case, I'm redirected to Microsoft login page while trying to load outlook. I'm not able to move forward from here. How can I login to the user session prior to running the tests ? Is there an API that returns auth tokens and will storing those tokens in browser localStorage enable to be always logged in ?
There is little to no documentation on how to perform e2e testing of the add-in. Any help is much appreciated.