title: Integration tests for Office 365 Outlook Add-in
body: <p>I have not been able to find guidelines to introduce integration tests for an Office 365 Outlook Add-in using a browser automation tool like Cypress or Selenium, and I'm looking for alternatives.</p>
  
  <p>My team is currently using Cypress for automation tests, and the only way I was able to run tests on an Outlook Add-in was to make the Add-in run outside of the Office 365 Outlook environment in a standalone mode.</p>
  
  <p>For the standalone mode, I had to mock the JavaScript API Office object (<a href="https://appsforoffice.microsoft.com/lib/1/hosted/Office.js" rel="nofollow noreferrer">https://appsforoffice.microsoft.com/lib/1/hosted/Office.js</a>) as well as mock the Office rest API responses to get a couple of tests running.</p>
  
  <p>It's a very painful process, so I would like to know if there's a better way to implement the integration tests.</p>