Skip to content

Commit

Permalink
Remove willRefinance parameter from payload to LGY.
Browse files Browse the repository at this point in the history
LGY's API docs indicate that they don't accept this parameter, we never sent the parameter to begin with, and although we used to collect it on the front end (i.e. "Do you want to refinance this loan?"), now that we are sending a loan intent for each loan (See department-of-veterans-affairs/vets-api#11666 and #23249), this question is unnecessary because the loan intent answers the question.
  • Loading branch information
data-doge committed Jan 30, 2023
1 parent 14dfbd3 commit e1cb687
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 26 deletions.
10 changes: 0 additions & 10 deletions src/applications/lgy/coe/form/config/chapters/loans/loanHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ export const schema = {
type: 'boolean',
},
intent: LOAN_INTENT_SCHEMA,
willRefinance: {
type: 'boolean',
},
},
},
},
Expand Down Expand Up @@ -188,13 +185,6 @@ export const uiSchema = {
expandUnder: 'propertyOwned',
},
},
willRefinance: {
'ui:title': text.refinance.title,
'ui:widget': 'yesNo',
'ui:options': {
hideEmptyValueInReview: true,
},
},
},
},
};
4 changes: 0 additions & 4 deletions src/applications/lgy/coe/form/content/loanHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,4 @@ export default {
title: 'Do you still own this property?',
value: data => (get('propertyOwned', data, '') ? 'Yes' : 'No'),
},
refinance: {
title: 'Do you want to refinance this loan?',
value: data => (get('willRefinance', data, '') ? 'Yes' : 'No'),
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ describe('Certificate of Eligibility keyboard only navigation', () => {
cy.tabToElement(`[name="${root}intent"]`);
cy.chooseRadio(firstLoan.intent);
}
cy.tabToElement(`[name="${root}willRefinance"]`);
cy.chooseRadio(firstLoan.willRefinance ? 'Y' : 'N');
}

cy.tabToContinueForm();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('COE applicant loan history', () => {
</Provider>,
);

expect($$('input', container).length).to.equal(11);
expect($$('input', container).length).to.equal(9);
expect($$('select', container).length).to.equal(3);
});

Expand All @@ -49,7 +49,7 @@ describe('COE applicant loan history', () => {
</Provider>,
);

expect($$('input', container).length).to.equal(16);
expect($$('input', container).length).to.equal(14);
expect($$('select', container).length).to.equal(3);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
"propertyZip": "85274"
},
"vaLoanNumber": "12-34-5-6789012",
"propertyOwned": true,
"willRefinance": false
"propertyOwned": true
},
{
"intent": "REFI",
Expand All @@ -63,8 +62,7 @@
"propertyZip": "85274"
},
"vaLoanNumber": "21 09 8 7654321",
"propertyOwned": true,
"willRefinance": false
"propertyOwned": true
}
],
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@
"propertyZip": "85274"
},
"vaLoanNumber": "123456789012",
"propertyOwned": true,
"willRefinance": false
"propertyOwned": true
},
{
"intent": "REFI",
Expand All @@ -66,8 +65,7 @@
"propertyZip": "85274"
},
"vaLoanNumber": "210987654321",
"propertyOwned": true,
"willRefinance": false
"propertyOwned": true
}
],
"files": [
Expand Down

0 comments on commit e1cb687

Please sign in to comment.