Skip to content

Commit

Permalink
chore(tests): update default completeAndSubmitAlternativeCurrencyForm…
Browse files Browse the repository at this point in the history
… param
  • Loading branch information
ttbarnes committed Oct 3, 2024
1 parent 38e0a79 commit 0145703
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const { CURRENCY_CODE } = INSURANCE_FIELD_IDS.CURRENCY;
* @param {Boolean} alternativeCurrency: If alternative currency should be entered.
*/

// TODO: update alternativeCurrency to be false by default.
const completeAndSubmitAlternativeCurrencyForm = ({ isoCode, alternativeCurrency = true }) => {
const completeAndSubmitAlternativeCurrencyForm = ({ isoCode, alternativeCurrency = false }) => {
if (isoCode) {
radios(CURRENCY_CODE, isoCode).option.label().click();
cy.clickSubmitButton();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ context('Insurance - Change your answers - Export contract - Summary list - Agen
percentageMethod: false,
});

cy.completeAndSubmitAlternativeCurrencyForm({ alternativeCurrency: false });
cy.completeAndSubmitAlternativeCurrencyForm({});

cy.completeAndSubmitHowMuchTheAgentIsChargingForm({});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ context(
percentageMethod: false,
});

cy.completeAndSubmitAlternativeCurrencyForm({ alternativeCurrency: false });
cy.completeAndSubmitAlternativeCurrencyForm({});

cy.completeAndSubmitHowMuchTheAgentIsChargingForm({});

Expand Down

0 comments on commit 0145703

Please sign in to comment.