I'm currently testing an internal company app (react-redux-express) and wanted to include some UI tests using Puppeteer (the rest of my tests are build with Jest and Enzyme). When I start a Puppeteer page, the session is not logged in and gets redirected to a Google sign-in page via our passport.js middleware. However, my problem is that sometimes our company specific google log in requires 2-factor authentication and therefore blocks any meaningful UI tests from accessing the actual application. So my question is whether there is a way to use passport middleware to exempt auth for testing only, and if so, is that a wise move to make or will it cause security issues?
Thanks@
Aucun commentaire:
Enregistrer un commentaire