-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MCR-2538] States are notified when CMS uploads questions about a sub…
…mission (#2068) * Adjust questionResponse resolver to pass needed data to emailer, created base emailer function * grab additional data in createQuestion resolver to pass to emailer * rename emailer function * add testing for new question email notification * Add emailer to config for createQuestionResolver * fix api test and add unit test for creatQuestion resolver * code clean up * Add failure case * remove old snapshot * re run all jobs * use a relative path import * change function name newQuestionStateEmail -> sendQuestionStateEmail * PR fixes for using contractwithrates instead of hpp * cypress re-run * add period to sentence in email, refactor sesemailer * throw error in test * throw errors in test * throw errors in test * WIP: refactor emailer * update test emailer to fix api test * rerun all jobs * re-run cypress --------- Co-authored-by: Mojo Talantikite <mojo.talantikite@gmail.com>
- Loading branch information
1 parent
5c242c2
commit 869f71e
Showing
25 changed files
with
926 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
services/app-api/src/emailer/emails/__snapshots__/sendQuestionStateEmail.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`renders overall email for a new question as expected 1`] = ` | ||
"CMS asked questions about MCR-MN-0003-SNBC<br /> | ||
<b>Sent by:</b> Ronald McDonald (DMCO) <a href="cms@email.com">cms@email.com</a> | ||
<br /> | ||
<b>Date:</b> 01/01/2024<br /> | ||
<br /> | ||
You must answer the question before CMS can continue reviewing it.<br /> | ||
<br /> | ||
<a href="http://localhost/submissions/12345">Open the submission in MC-Review to answer questions</a> | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.