forked from opengovsg/FormSG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rename "Reference Number" to "Response ID" (opengovsg#2277)
* feat: update response email subject to use # * feat: update response email body to use Response ID * feat: update storage mode Data tab to use Response ID * feat: update storage mode CSV to use Response ID * feat: update email confirmation PDF to use Response ID * build: empty commit to trigger build
- Loading branch information
1 parent
6e3147b
commit 605046e
Showing
10 changed files
with
24 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ const makeEmailNotification = ( | |
}, | ||
], | ||
commonHeaders: { | ||
subject: `Title (Ref: ${submissionId})`, | ||
subject: `Title (#${submissionId})`, | ||
to: recipientList, | ||
from: '[email protected]', | ||
}, | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ const verifySubmission = async (t, testFormData, authData) => { | |
await t.expect(from).eql('FormSG <[email protected]>') | ||
|
||
// Verify subject of email | ||
await t.expect(subject).contains(`formsg-auto: ${title} (Ref:`) | ||
await t.expect(subject).contains(`formsg-auto: ${title} (#`) | ||
// Verify form content in email | ||
for (let field of formFields) { | ||
const contained = [ | ||
|
@@ -66,7 +66,7 @@ const verifySubmission = async (t, testFormData, authData) => { | |
await t.expect(emailJSONStr).notEql(null) | ||
const emailJSON = JSON.parse(decodeHtmlEntities(emailJSONStr)) | ||
const response = emailJSON.filter( | ||
({ question }) => !/(Reference Number|Timestamp)/.test(question), | ||
({ question }) => !/(Response ID|Timestamp)/.test(question), | ||
) | ||
await t.expect(response.length).notEql(0) | ||
let rowIdx = 0 // A table could result in multiple rows of answers, so there might be more answers than form fields | ||
|
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