sillsdev / languageforge-lexbox

Lexbox, SIL linguistic data hub
MIT License
7 stars 2 forks source link

Mailinator no longer working for automated tests #1034

Open hahn-kev opened 2 months ago

hahn-kev commented 2 months ago

Describe the bug All our tests that depend on mailinator fail because they now have captcha in place to avoid automation. This means we need to come up with another solution, there's a verified pro tier on mailinator that might work for us, but that's only for a single user, so I'm not sure it'll work for us.

To Reproduce Run playwright email tests against staging, see that they mostly all fail

Expected behavior our tests should pass just fine

hahn-kev commented 1 month ago

one solution would be to great a gmail account, and generate an auth token to use the gmail API to fetch our emails.

There's also some alternative services:

myieye commented 1 month ago

It looks like yopmail has CAPTCHA too. guerrillamail has a weird API. This seemed to more or less work:

  1. Invoke-WebRequest -Uri "https://api.guerrillamail.com/ajax.php?f=set_email_user&email_user=lexbox-text-address@sharklasers.com"
  2. Get the sid_token from the response json
  3. (Invoke-WebRequest -Uri "https://api.guerrillamail.com/ajax.php?f=check_email&seq=0&sid_token={sid_token}").Content (only worked the first time after steps 1 and 2)