mailcatcher

Fetching values from email in protractor test case

China☆狼群 提交于 2019-12-17 03:37:25
问题 I need to test a protractor test case in which a user signs up, receives an email, goes to the link provided in the email and fills up his/her details in activation signup form. The problem is how can I get the redeem token from the email. My email has a link to the activation page which has the auth token like following: http://127.0.0.1:3000/#/signup/redeem/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9

Using mailcatcher in cloud9 ide

放肆的年华 提交于 2019-12-12 06:07:30
问题 I'd like to use mailcatcher to preview emails without sending them in my Cloud9 environment. I've started up the mailcatcher daemon but can't access the server. I'm guessing it's simply that port 1080 is not accessible in my environment. Does anyone know how I might get this set up? 回答1: To start mailcatcher and access it on Cloud9 mailcatcher --http-port $PORT --http-ip $IP and you can access it from https://project_name-username.c9.io/ If you want to kill the same process, list it using and

Fetching values from email in protractor test case

末鹿安然 提交于 2019-11-26 16:28:10
I need to test a protractor test case in which a user signs up, receives an email, goes to the link provided in the email and fills up his/her details in activation signup form. The problem is how can I get the redeem token from the email. My email has a link to the activation page which has the auth token like following: http://127.0.0.1:3000/#/signup/redeem/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJlOTRhYzY3MC1kYTNlLTQyYTUtODVkZS02NDU4ZjVmZGMwYjAiLCJzdWIiOiJ0ZXN0QGNvZWYuY28iLCJpYXQiOjE0Mjc0OTM5MDMsImV4cCI6MTQyODA5ODcwM30. But how do I fetch that token so that I can build the url or how