dwerning1 / test-for-wrike

0 stars 0 forks source link

Merchstores Queue Emails #171

Closed sync-by-unito[bot] closed 3 years ago

sync-by-unito[bot] commented 3 years ago

Fixes task: https://www.wrike.com/open.htm?id=764785163

Steps to Test

  1. Log into the deploy preview and create a new MerchStore (always open).
  2. Set the merchstore's status to active and update the store.
  3. In the DB, check the email_notifications collection. An order closed email notification should have been generated under the created store's storeCode. (always open stores don't get a halfway or last day email)
  4. Create a new merchstore (static close).
  5. Repeat step 2 for the new store.
  6. Repeat step 3. For static stores there should also be a halfway and last day email entry.
  7. Update the close date for the static store. Check the DB and verify that the dates have recalculated for the store's email entries.
  8. Double check that the functionality for GoT are still intact. Steps are the same for GoT as for static close date MerchStores.

┆Issue is synchronized with this Wrike Item by Unito

sync-by-unito[bot] commented 3 years ago

➤ Santiago Pence Garcia commented:

Quick and dirty but works. Most of my concerns are from the original GOT code that it's just polluted with lots of new Promise(). I'll ignore them and let pass this.