rishav.raj
Mon Jul 24 2023
how to automate the OTP for cypress test
There is a package called gmail-tester
which help use to retrieve mail from the gmail, its have lots of option like from
, to
, subject
, mail_body
etc
Package link :https://github.com/levz0r/gmail-tester
If you get the able to get the mail then you are good to go to extract OTP from the mail body after extracting otp from the mail you will able to automate the gmail OTP.
Thanks