How to login to OWA for performing e2e testing of outlook onSend add-in

Abdu Manas C A 11 Reputation points
2022-10-05T10:13:36.24+00:00

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.

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,720 questions
0 comments No comments
{count} vote