-
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.
[CCAP-464] Temporarily fix PDF download by adding confirmation code s…
…creen to new provider flow (#919)
- Loading branch information
1 parent
ab927c9
commit 8902847
Showing
4 changed files
with
49 additions
and
5 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
30 changes: 30 additions & 0 deletions
30
...sources/templates/providerresponse/temporary-provider-response-confirmation-code-fix.html
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,30 @@ | ||
<th:block | ||
th:replace="~{fragments/screens/screenWithOneInput :: | ||
screenWithOneInput( | ||
title=#{provider-response-confirmation-code.title}, | ||
header=#{provider-response-confirmation-code.header}, | ||
subtext=#{provider-response-confirmation-code.subtext}, | ||
iconFragment=~{fragments/gcc-icons :: clipboardWithEnvelope}, | ||
buttonLabel=#{general.button.continue}, | ||
required='true', | ||
formAction=${formAction}, | ||
inputContent=~{::inputContent})}"> | ||
<th:block th:ref="inputContent"> | ||
<th:block th:replace="~{fragments/inputs/text :: | ||
text(inputName='providerResponseFamilyShortCode', | ||
ariaLabel='header')}"/> | ||
</th:block> | ||
</th:block> | ||
|
||
<script th:inline="javascript"> | ||
$(document).ready(function () { | ||
const providerFamilyCode = $('#providerResponseFamilyShortCode') | ||
|
||
if(!providerFamilyCode.text()){ | ||
var confirmationCode = [[${session.confirmationCode}]]; | ||
if(confirmationCode){ | ||
providerFamilyCode.val(confirmationCode) | ||
} | ||
} | ||
}); | ||
</script> |
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 |
---|---|---|
|
@@ -185,6 +185,12 @@ void BasicInfoFlow() { | |
testPage.enter("providerResponseContactPhoneNumber", "5555555555"); | ||
testPage.enter("providerResponseContactEmail", "[email protected]"); | ||
testPage.clickContinue(); | ||
|
||
// Temporary Confimation Code | ||
// TODO - Remove this when we have a solution for downloading the PDF in the provider response flow | ||
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-confirmation-code.title")); | ||
testPage.enter("providerResponseFamilyShortCode", CONF_CODE); | ||
testPage.clickContinue(); | ||
|
||
// info-review | ||
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-info-review.title")); | ||
|