passwordless
passwordless copied to clipboard
Automated testing
Does anyone have any good strategies to enable automated UI testing using passwordless login?
We wrote a mock for the email-sending function that saves the token in a variable instead of sending the email, and then the tests can just read it.
https://facebook.github.io/jest/docs/en/mock-functions.html
We can use Puppeteer and Browserstack + Jest for this