Skip to content

Commit

Permalink
[CCAP-464] Temporarily fix PDF download by adding confirmation code s…
Browse files Browse the repository at this point in the history
…creen to new provider flow (#919)
  • Loading branch information
spokenbird authored Dec 16, 2024
1 parent ab927c9 commit 8902847
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/java/org/ilgcc/app/inputs/Providerresponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,16 @@ public class Providerresponse extends FlowInputs {

@Phone(message = "{errors.invalid-phone-number}")
private String providerResponseContactPhoneNumber;


@NotBlank
private String providerMailingStreetAddress1;

private String providerMailingStreetAddress2;

@NotBlank
private String providerMailingCity;

@NotBlank
private String providerMailingState;

@NotBlank
private String providerMailingZipCode;

private String providerMailingAddressSameAsServiceAddress;
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/flows-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,13 @@ flow:
nextScreens:
- name: registration-contact-info
registration-contact-info:
nextScreens:
# Temporary until we have a way to download PDF in providerresponse flow
# Confirmation code is needed to DL PDF since its how we get the family submission
# TODO: change this when we've figured out above comments and delete the temporary-provider-response-confirmation-code-fix screen
- name: temporary-provider-response-confirmation-code-fix
# - name: registration-info-review
temporary-provider-response-confirmation-code-fix:
nextScreens:
- name: registration-info-review
registration-info-review:
Expand Down
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>
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 8902847

Please sign in to comment.