Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Features:
agencies
tableImprovements:
Bug Fixes:
Tests
Test frontend tests: #1086
Test campaign title overflow fixes: #1147
Test
agencies
table: #1141Test SNS fallback: #1019
Test SendGrid fallback: #1026
Test message delivery statuses: #1150
Frontend tests
Campaign title overflow fixes
agencies
whitelisting title (tested on staging only)@gmail.com
to the table allows OTPs to be sent to those emails@gmail.com
from the table disallows OTPs from being sent to those emails.gov.sg
emailsSNS SMS fallback (tested on staging only)
Postman
during fallback (SNS receives it, but it isn't delivered due to exceeding the quota)SendGrid email fallback (tested on staging only)
status
anderror_code
)status
anderror_code
)SMS delivery status (skipped)
Smoke tests
Deploy Notes
Frontend tests have been added and should be run on every Travis and Amplify build. If any test fails, the entire frontend build should fail. In particular, Amplify should not publish the failed build.
New environment variables:
In both backend and worker:
SMS_FALLBACK_ACTIVATE
: Switch to true to use SNS as fallback for all SMS campaignsSMS_FALLBACK_SENDER_ID
: Sender ID to use for SNS SMSesEMAIL_FALLBACK_ACTIVATE
: Switch to true to use SendGrid as fallback for all emails. Ensure that the SMTP settings are properly configured as well.New dependencies:
@aws-sdk/sns-client
: AWS SNS ClientNew dev dependencies:
In frontend:
msw
: to mock backend API responses@testing-library/react
: for idiomatic react testing APIs@testing-library/jest-dom
: for idiomatic DOM assertion APIs@testing-library/user-event
: for idiomatic DOM user event APIsjest-canvas-mock
: to mock Canvas for Lottie as jsdom doesn't implement it@peculiar/webcrypto
: as jsdom doesn't implement the WebCrypto APIUpgraded dependencies:
New scripts:
test
: Runs the frontend tests. This should be run on every Travis build. If any test fails, the entire frontend build should fail.IAM policy changes
postmangovsg-SNSPublishSMS
to production Beanstalk instance rolepostmangovsg-SNSPublishSMS
to production ECS task role