Testing React app with Duo 2FA



I currently develop a ReactJS app that use Duo as 2FA library. I want to add some E2E tests on my codebase and i want to know if exists a mechanism to automatically login with Duo without accepting a Push request or enter a Passcode just for testing purpose.


Sorry, we don’t have a testing endpoint in our cloud service to permit this.

You could mock a Duo Push success and fail response in your test and proceed in testing your app’s handling of that.