Skip to content

Commit 6e4febf

Browse files
Yes/No question name of river (#358)
* Yes/No question name of Still set as answer instead of select for entering name of river * update missed questiomn change * add single quote too you do not know
1 parent 658e3ce commit 6e4febf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

server/routes/__tests__/blockage/history.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ describe(url, () => {
103103
}
104104
const response = await submitPostRequest(options, constants.statusCodes.OK)
105105
expect(response.payload).toContain('There is a problem')
106-
expect(response.payload).toContain('Select whether the blockage has been here for some time or you do not know')
106+
expect(response.payload).toContain('Select whether the blockage has been here for some time or 'you do not know'')
107107
})
108108
it('Sad rejects yes answer with no further details', async () => {
109109
const options = {

server/routes/__tests__/blockage/river-name.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe(url, () => {
6363
}
6464
const response = await submitPostRequest(options, constants.statusCodes.OK)
6565
expect(response.payload).toContain('There is a problem')
66-
expect(response.payload).toContain('Answer 'yes' if you know the name of the river')
66+
expect(response.payload).toContain('Select 'yes' if you know the name of the river')
6767
})
6868
it('Sad: rejects yes answer with no further details', async () => {
6969
const options = {

server/routes/blockage/history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const validatePayload = (answerId, yesDetails) => {
4848
const errorSummary = getErrorSummary()
4949
if (!answerId) {
5050
errorSummary.errorList.push({
51-
text: 'Select whether the blockage has been here for some time or you do not know',
51+
text: 'Select whether the blockage has been here for some time or \'you do not know\'',
5252
href: '#answerId'
5353
})
5454
} else if (Number(answerId) === question.answers.yes.answerId && !yesDetails) {

server/routes/blockage/river-name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const validatePayload = (answerId, yesDetails) => {
5151
const errorSummary = getErrorSummary()
5252
if (!answerId) {
5353
errorSummary.errorList.push({
54-
text: 'Answer \'yes\' if you know the name of the river',
54+
text: 'Select \'yes\' if you know the name of the river',
5555
href: '#answerId'
5656
})
5757
} else if (Number(answerId) === question.answers.yes.answerId && !yesDetails) {

0 commit comments

Comments
 (0)