From 5b2e8ca4259885a26eaf23cfb9b1dd7b1fca9a31 Mon Sep 17 00:00:00 2001 From: shravan mechineni Date: Fri, 8 Nov 2024 13:54:03 +0000 Subject: [PATCH] update FTs (#933) * update FTs * disable test --- .../test/end-to-end/pages/add_fees.js | 36 +++++++------- .../end-to-end/pages/case_transactions.js | 4 +- .../test/end-to-end/pages/payment_history.js | 4 +- .../test/end-to-end/pages/steps_file.js | 6 +-- .../tests/CCPB_BulkScanFunctionality_test.js | 24 +++++----- ...r_Payment_Option_Selection_Journey_test.js | 14 +++--- .../tests/Refund_Partial_Journey_test.js | 12 ++--- .../Refund_Retro_Remission_Journey_test.js | 47 ++++++++++--------- 8 files changed, 74 insertions(+), 73 deletions(-) diff --git a/acceptance-tests/test/end-to-end/pages/add_fees.js b/acceptance-tests/test/end-to-end/pages/add_fees.js index 4a6c3d10c..41ae00338 100644 --- a/acceptance-tests/test/end-to-end/pages/add_fees.js +++ b/acceptance-tests/test/end-to-end/pages/add_fees.js @@ -32,12 +32,12 @@ module.exports = { I.click('Apply filters'); I.click('Select'); I.wait(CCPBConstants.fiveSecondWaitTime); - let numOfElements = await I.grabNumberOfVisibleElements('//input[@id=\'fee-version0\']'); - if(numOfElements) { - I.click('//input[@id=\'fee-version0\']'); - I.click('Continue'); - I.wait(CCPBConstants.fiveSecondWaitTime); - } + // let numOfElements = await I.grabNumberOfVisibleElements('//input[@id=\'fee-version0\']'); + // if(numOfElements) { + // I.click('//input[@id=\'fee-version0\']'); + // I.click('Continue'); + // I.wait(CCPBConstants.fiveSecondWaitTime); + // } }, async addFeesAmount(amount, jurisdiction1, jurisdiction2) { @@ -58,12 +58,12 @@ module.exports = { } I.click('Select'); I.wait(CCPBConstants.fiveSecondWaitTime); - let numOfElements = await I.grabNumberOfVisibleElements('//input[@id=\'fee-version0\']'); - if(numOfElements) { - I.click('//input[@id=\'fee-version0\']'); - I.click('Continue'); - I.wait(CCPBConstants.fiveSecondWaitTime); - } + // let numOfElements = await I.grabNumberOfVisibleElements('//input[@id=\'fee-version0\']'); + // if(numOfElements) { + // I.click('//input[@id=\'fee-version0\']'); + // I.click('Continue'); + // I.wait(CCPBConstants.fiveSecondWaitTime); + // } }, async addFeesOverPayment(amount) { @@ -74,12 +74,12 @@ module.exports = { I.wait(CCPBConstants.fiveSecondWaitTime, 10); I.click('Select'); I.wait(CCPBConstants.fiveSecondWaitTime); - let numOfElements = await I.grabNumberOfVisibleElements('//input[@id=\'fee-version0\']'); - if(numOfElements) { - I.click('//input[@id=\'fee-version0\']'); - I.click('Continue'); - I.wait(CCPBConstants.fiveSecondWaitTime); - } + // let numOfElements = await I.grabNumberOfVisibleElements('//input[@id=\'fee-version0\']'); + // if(numOfElements) { + // I.click('//input[@id=\'fee-version0\']'); + // I.click('Continue'); + // I.wait(CCPBConstants.fiveSecondWaitTime); + // } I.click(this.locators.allocate_payment); I.wait(CCPBConstants.tenSecondWaitTime); I.click(this.locators.help_with_fee); diff --git a/acceptance-tests/test/end-to-end/pages/case_transactions.js b/acceptance-tests/test/end-to-end/pages/case_transactions.js index c821cd17d..4a14fee7d 100644 --- a/acceptance-tests/test/end-to-end/pages/case_transactions.js +++ b/acceptance-tests/test/end-to-end/pages/case_transactions.js @@ -416,10 +416,10 @@ module.exports = { I.see('£280.00'); I.see('Overpayment'); }, - validateTransactionPageForPartialPayments() { + validateTransactionPageForPartialPayments(amount) { I.wait(CCPBConstants.tenSecondWaitTime); I.see('Total payments'); - I.see('£273'); + I.see(`£${amount}`); I.see('Total remissions'); I.see('Amount due'); I.see('Unallocated payments'); diff --git a/acceptance-tests/test/end-to-end/pages/payment_history.js b/acceptance-tests/test/end-to-end/pages/payment_history.js index 5567ca6c3..32e27f1b6 100644 --- a/acceptance-tests/test/end-to-end/pages/payment_history.js +++ b/acceptance-tests/test/end-to-end/pages/payment_history.js @@ -105,7 +105,7 @@ module.exports = { // I.dontSee('Date'); }, - validatePaymentDetailsForPartialPayment(paymentReference) { + validatePaymentDetailsForPartialPayment(paymentReference, amount) { I.see('Payment details'); I.see('Payment reference'); I.see('Payment amount'); @@ -114,7 +114,7 @@ module.exports = { I.see('PBA account name'); I.see('PBA number'); I.see('Customer internal reference'); - I.see('£273.00'); + I.see(`£${amount}`); I.see(`${paymentReference}`); I.see('2024-'); }, diff --git a/acceptance-tests/test/end-to-end/pages/steps_file.js b/acceptance-tests/test/end-to-end/pages/steps_file.js index 57fadca46..62cf20816 100644 --- a/acceptance-tests/test/end-to-end/pages/steps_file.js +++ b/acceptance-tests/test/end-to-end/pages/steps_file.js @@ -911,8 +911,8 @@ module.exports = () => actor({ this.see(ccdCaseNumberFormatted); this.click('Create service request and pay'); this.wait(CCPBConstants.fiveSecondWaitTime); - await AddFees.addFeesAmount('273.00', 'family', 'probate_registry'); - FeesSummary.verifyFeeSummaryTelephonyPayment(ccdCaseNumberFormatted, 'FEE0219', '273.00', false); + await AddFees.addFeesAmount('300.00', 'family', 'probate_registry'); + FeesSummary.verifyFeeSummaryTelephonyPayment(ccdCaseNumberFormatted, 'FEE0219', '300.00', false); FeesSummary.deductRemission(); Remission.processRemission('FEE0219', '200'); Remission.confirmProcessRemission(); @@ -927,7 +927,7 @@ module.exports = () => actor({ this.see('Partially paid'); this.click('Take telephony payment'); this.wait(CCPBConstants.fiveSecondWaitTime); - FeesSummary.verifyFeeSummaryAfterRemission('FEE0219', '273.00', '73.00', '£200.00'); + FeesSummary.verifyFeeSummaryAfterRemission('FEE0219', '300.00', '100.00', '£200.00'); this.click('Take payment'); this.wait(CCPBConstants.fiveSecondWaitTime); this.waitInUrl('pcipal', 2); diff --git a/acceptance-tests/test/end-to-end/tests/CCPB_BulkScanFunctionality_test.js b/acceptance-tests/test/end-to-end/tests/CCPB_BulkScanFunctionality_test.js index bddf88f84..9ed618110 100644 --- a/acceptance-tests/test/end-to-end/tests/CCPB_BulkScanFunctionality_test.js +++ b/acceptance-tests/test/end-to-end/tests/CCPB_BulkScanFunctionality_test.js @@ -134,11 +134,11 @@ Scenario('Normal ccd case cheque payment partial allocation 2 fees added with a I.wait(CCPBATConstants.tenSecondWaitTime); FeesSummary.verifyFeeSummaryAfterRemission('FEE0002', '£593.00', '£100.00', '£493.00'); FeesSummary.addFeeFromSummary(); - await AddFees.addFees('19.00', 'civil', 'magistrates_court'); - FeesSummary.verifyFeeSummaryBulkScan(ccdCaseNumberFormatted, 'FEE0002', '19.00', true); + await AddFees.addFees('21.00', 'civil', 'magistrates_court'); + FeesSummary.verifyFeeSummaryBulkScan(ccdCaseNumberFormatted, 'FEE0362', '21.00', true); I.wait(CCPBATConstants.tenSecondWaitTime); - ConfirmAssociation.verifyConfirmAssociationShortfallPayment('FEE0002', '1', '493.00', '593.00', '593.00', '19.00'); - ConfirmAssociation.verifyConfirmAssociationShortfallPayment('FEE0362', '1', '493.00', '19.00', '19.00', '19.00'); + ConfirmAssociation.verifyConfirmAssociationShortfallPayment('FEE0002', '1', '493.00', '593.00', '593.00', '21.00'); + ConfirmAssociation.verifyConfirmAssociationShortfallPayment('FEE0362', '1', '493.00', '21.00', '21.00', '21.00'); ConfirmAssociation.selectShortfallReasonExplainatoryAndUser('Help with Fees', 'Contact applicant'); ConfirmAssociation.confirmPayment(); I.wait(CCPBATConstants.tenSecondWaitTime); @@ -381,7 +381,7 @@ Scenario('Exception search with ccd record postal order payment surplus payment' Scenario('Fully Paid Fee with Upfront Remission CANNOT be Refunded', async({ I, CaseSearch, CaseTransaction, AddFees, FeesSummary, ConfirmAssociation, Remission }) => { I.login(testConfig.TestProbateCaseWorkerUserName, testConfig.TestProbateCaseWorkerPassword); - const totalAmount = 173; + const totalAmount = 200; const ccdAndDcn = await bulkScanApiCalls.bulkScanNormalCcd('AA08', totalAmount, 'cheque'); const ccdCaseNumber = ccdAndDcn[1]; const dcnNumber = ccdAndDcn[0]; @@ -391,24 +391,24 @@ Scenario('Fully Paid Fee with Upfront Remission CANNOT be Refunded', async({ I, await miscUtils.multipleSearch(CaseSearch, I, ccdCaseNumber); I.wait(CCPBATConstants.fiveSecondWaitTime); CaseTransaction.checkBulkCase(ccdCaseNumberFormatted, 'Case reference'); - CaseTransaction.checkUnallocatedPayments('1', dcnNumber, '173.00', 'cheque'); + CaseTransaction.checkUnallocatedPayments('1', dcnNumber, '200.00', 'cheque'); CaseTransaction.allocateToNewFee(); - await AddFees.addFeesAmount('273.00', 'family', 'probate_registry'); - FeesSummary.verifyFeeSummaryBulkScan(ccdCaseNumberFormatted, 'FEE0219', '273.00', false); + await AddFees.addFeesAmount('300.00', 'family', 'probate_registry'); + FeesSummary.verifyFeeSummaryBulkScan(ccdCaseNumberFormatted, 'FEE0219', '300.00', false); I.wait(CCPBATConstants.fiveSecondWaitTime); FeesSummary.deductRemission(); I.wait(CCPBATConstants.fiveSecondWaitTime); - Remission.processRemission('FEE0219', '173'); + Remission.processRemission('FEE0219', '200'); Remission.confirmProcessRemission(); I.wait(CCPBATConstants.tenSecondWaitTime); - FeesSummary.verifyFeeSummaryAfterRemission('FEE0219', '£273.00', '£100.00', '£173.00'); + FeesSummary.verifyFeeSummaryAfterRemission('FEE0219', '£300.00', '£100.00', '£200.00'); FeesSummary.allocateBulkPayment(); - ConfirmAssociation.verifyConfirmAssociationFullPayment('FEE0219', '1', '173.00', '273.00'); + ConfirmAssociation.verifyConfirmAssociationFullPayment('FEE0219', '1', '200.00', '300.00'); ConfirmAssociation.confirmPayment(); I.wait(CCPBATConstants.tenSecondWaitTime); CaseTransaction.checkBulkCaseSuccessPayment(ccdCaseNumberFormatted, 'Case reference'); CaseTransaction.checkIfBulkScanPaymentsAllocated(dcnNumber); - await CaseTransaction.validateCaseTransactionsDetails('173.00', '0', '100.00', '0.00', '0.00'); + await CaseTransaction.validateCaseTransactionsDetails('200.00', '0', '100.00', '0.00', '0.00'); CaseTransaction.validatePaymentDetailsPageForRemission('HWF-A1B-23C', 'FEE0219', '£100.00'); await apiUtils.rollbackPaymentDateByCCDCaseNumber(ccdCaseNumber); I.click('Back'); diff --git a/acceptance-tests/test/end-to-end/tests/Refund_Over_Payment_Option_Selection_Journey_test.js b/acceptance-tests/test/end-to-end/tests/Refund_Over_Payment_Option_Selection_Journey_test.js index 55f285470..2dff4bb94 100644 --- a/acceptance-tests/test/end-to-end/tests/Refund_Over_Payment_Option_Selection_Journey_test.js +++ b/acceptance-tests/test/end-to-end/tests/Refund_Over_Payment_Option_Selection_Journey_test.js @@ -19,7 +19,7 @@ Scenario('Bulk scan cash Over Payment refund, preview RefundWhenContacted email const bulkScanPaymentMethod = 'cash'; const emailAddress = stringUtil.getTodayDateAndTimeInString() + 'refundspaybubbleft1@mailtest.gov.uk'; - const totalAmount = 300; + const totalAmount = 327; // Create Payment and back date for refund eligibility const ccdAndDcn = await apiUtils.bulkScanNormalCcd('AA08', totalAmount, bulkScanPaymentMethod); @@ -30,9 +30,9 @@ Scenario('Bulk scan cash Over Payment refund, preview RefundWhenContacted email I.wait(CCPBATConstants.fiveSecondWaitTime); await CaseTransaction.validateTransactionPageForOverPayments(); I.wait(CCPBATConstants.fiveSecondWaitTime); - await AddFees.addFeesOverPayment('273'); + await AddFees.addFeesOverPayment('300'); I.wait(CCPBATConstants.tenSecondWaitTime); - await CaseTransaction.validateCaseTransactionsDetails('300.00', '0', '0.00', '0.00', '27.00'); + await CaseTransaction.validateCaseTransactionsDetails('327.00', '0', '0.00', '0.00', '27.00'); await I.click('(//*[text()[contains(.,"Review")]])[2]'); I.wait(CCPBATConstants.fifteenSecondWaitTime); const paymentRcReference = await I.grabTextFrom(CaseTransaction.locators.rc_reference); @@ -57,13 +57,13 @@ Scenario('Bulk scan cash Over Payment refund, preview RefundWhenContacted email I.fillField('//*[@id="email"]', emailAddress); I.click('Continue'); - const checkYourAnswersDataBeforeSubmitRefund = assertionData.checkYourAnswersBeforeSubmitRefund(paymentRcReference, '£300.00', '£273.00', 'Over payment', '£27.00', emailAddress, '', 'RefundWhenContacted'); + const checkYourAnswersDataBeforeSubmitRefund = assertionData.checkYourAnswersBeforeSubmitRefund(paymentRcReference, '£327.00', '£300.00', 'Over payment', '£27.00', emailAddress, '', 'RefundWhenContacted'); const refundNotificationPreviewDataBeforeRefundRequest = assertionData.refundNotificationPreviewData(emailAddress, '', ccdCaseNumber, 'RF-****-****-****-****', '27', 'Refund for Overpayment', bulkScanPaymentMethod); await InitiateRefunds.verifyCheckYourAnswersPageAndSubmitRefundForOverPaymentRefundOption(checkYourAnswersDataBeforeSubmitRefund, false, '', false, true, refundNotificationPreviewDataBeforeRefundRequest); const refundReference = await InitiateRefunds.verifyRefundSubmittedPage('27.00'); I.wait(CCPBATConstants.tenSecondWaitTime); - await CaseTransaction.validateCaseTransactionsDetails('300.00', '0', '0.00', '0.00', '27.00'); + await CaseTransaction.validateCaseTransactionsDetails('327.00', '0', '0.00', '0.00', '27.00'); await I.Logout(); I.clearCookie(); I.wait(CCPBATConstants.fiveSecondWaitTime); @@ -92,7 +92,7 @@ Scenario('Bulk scan cash Over Payment refund, preview RefundWhenContacted email I.wait(CCPBATConstants.tenSecondWaitTime); await miscUtils.multipleSearch(CaseSearch, I, ccdCaseNumber); I.wait(CCPBATConstants.fiveSecondWaitTime); - await CaseTransaction.validateCaseTransactionsDetails('300.00', '0', '0.00', '0.00', '27.00'); + await CaseTransaction.validateCaseTransactionsDetails('327.00', '0', '0.00', '0.00', '27.00'); await I.click('(//*[text()[contains(.,"Review")]])[3]'); I.wait(CCPBATConstants.fifteenSecondWaitTime); const reviewRefundDetailsDataAfterApproval = assertionData.reviewRefundDetailsDataAfterApproverAction(refundReference, paymentRcReference, 'Overpayment', '27.00', emailAddress, '', 'payments probate', 'approver probate'); @@ -104,7 +104,7 @@ Scenario('Bulk scan cash Over Payment refund, preview RefundWhenContacted email I.wait(CCPBATConstants.fiveSecondWaitTime); I.refreshPage(); I.wait(CCPBATConstants.fiveSecondWaitTime); - await CaseTransaction.validateCaseTransactionsDetails('300.00', '0', '0.00', '0.00', '0.00'); + await CaseTransaction.validateCaseTransactionsDetails('327.00', '0', '0.00', '0.00', '0.00'); await I.Logout(); I.clearCookie(); diff --git a/acceptance-tests/test/end-to-end/tests/Refund_Partial_Journey_test.js b/acceptance-tests/test/end-to-end/tests/Refund_Partial_Journey_test.js index 974e493bc..735423042 100644 --- a/acceptance-tests/test/end-to-end/tests/Refund_Partial_Journey_test.js +++ b/acceptance-tests/test/end-to-end/tests/Refund_Partial_Journey_test.js @@ -12,8 +12,8 @@ Scenario('PBA Partial Refund, preview SendRefund letter notification journey and const postcode = 'TW4 7EZ'; // Create Payment and back date for refund eligibility - const totalAmount = 273; - const paymentDetails = await apiUtils.createAPBAPayment(totalAmount, 'FEE0219', '5', 1); + const totalAmount = '300.00'; + const paymentDetails = await apiUtils.createAPBAPayment(totalAmount, 'FEE0219', '6', 1); const ccdCaseNumber = `${paymentDetails.ccdCaseNumber}`; const paymentRef = `${paymentDetails.paymentReference}`; console.log('**** The value of the ccdCaseNumber - ' + ccdCaseNumber); @@ -22,7 +22,7 @@ Scenario('PBA Partial Refund, preview SendRefund letter notification journey and I.wait(CCPBATConstants.tenSecondWaitTime); await miscUtils.multipleSearch(CaseSearch, I, ccdCaseNumber); I.wait(CCPBATConstants.fiveSecondWaitTime); - await CaseTransaction.validateTransactionPageForPartialPayments(); + await CaseTransaction.validateTransactionPageForPartialPayments(totalAmount); I.wait(CCPBATConstants.fiveSecondWaitTime); await I.click('(//*[text()[contains(.,"Review")]])[2]'); I.wait(CCPBATConstants.fifteenSecondWaitTime); @@ -34,13 +34,13 @@ Scenario('PBA Partial Refund, preview SendRefund letter notification journey and I.wait(CCPBATConstants.fiveSecondWaitTime); await I.click('(//*[text()[contains(.,"Review")]])[2]'); I.wait(CCPBATConstants.fiveSecondWaitTime); - await PaymentHistory.validatePaymentDetailsForPartialPayment(paymentRef); + await PaymentHistory.validatePaymentDetailsForPartialPayment(paymentRef, totalAmount); I.wait(CCPBATConstants.fiveSecondWaitTime); } // Submit refund I.click('Issue refund'); I.wait(CCPBATConstants.fiveSecondWaitTime); - const reviewProcessRefundPageData = assertionData.reviewProcessRefundPageDataForFeeRefundSelection(paymentRcReference, 'Application for a grant of probate (Estate over 5000 GBP)', '£273.00', '£273.00', '200', '1'); + const reviewProcessRefundPageData = assertionData.reviewProcessRefundPageDataForFeeRefundSelection(paymentRcReference, 'Application for a grant of probate (Estate over 5000 GBP)', '£300.00', '£300.00', '200', '1'); await InitiateRefunds.verifyProcessRefundPageForFeeRefundSelection(reviewProcessRefundPageData, ccdCaseNumber); I.click('Continue'); I.wait(CCPBATConstants.fiveSecondWaitTime); @@ -59,7 +59,7 @@ Scenario('PBA Partial Refund, preview SendRefund letter notification journey and I.click('Continue'); I.wait(CCPBATConstants.fiveSecondWaitTime); - const checkYourAnswersDataBeforeSubmitRefund = assertionData.checkYourAnswersBeforeSubmitRefund(paymentRcReference, '£273.00', '', refundDropDownReason + '-' + reasonText, '£200.00', '', postcode, 'SendRefund'); + const checkYourAnswersDataBeforeSubmitRefund = assertionData.checkYourAnswersBeforeSubmitRefund(paymentRcReference, '£300.00', '', refundDropDownReason + '-' + reasonText, '£200.00', '', postcode, 'SendRefund'); const refundNotificationPreviewDataBeforeRefundRequest = assertionData.refundNotificationPreviewData('', postcode, ccdCaseNumber, 'RF-****-****-****-****', '200', 'Other'); await InitiateRefunds.verifyCheckYourAnswersPageAndSubmitRefundForExactAmountPaidNonCashPartialOrFullRefunds(checkYourAnswersDataBeforeSubmitRefund, false, '', false, true, false, false, refundNotificationPreviewDataBeforeRefundRequest); diff --git a/acceptance-tests/test/end-to-end/tests/Refund_Retro_Remission_Journey_test.js b/acceptance-tests/test/end-to-end/tests/Refund_Retro_Remission_Journey_test.js index ed60efb90..38deebcec 100644 --- a/acceptance-tests/test/end-to-end/tests/Refund_Retro_Remission_Journey_test.js +++ b/acceptance-tests/test/end-to-end/tests/Refund_Retro_Remission_Journey_test.js @@ -15,8 +15,8 @@ Scenario('Fully Paid Fee with Retro Remission CAN have Full Remission Refunded', const bulkScanPaymentMethod = 'cheque'; const emailAddress = `${stringUtil.getTodayDateAndTimeInString()}refundspaybubbleft1@mailtest.gov.uk`; - const totalAmount = '273.00'; - const feeAmount = '273.00'; + const totalAmount = '300.00'; + const feeAmount = '300.00'; const remissionAmount= '100.00'; const hwfReference= 'HWF-A1B-23C'; const ccdAndDcn = await apiUtils.bulkScanNormalCcd('AA08', totalAmount, bulkScanPaymentMethod); @@ -116,8 +116,8 @@ Scenario('Partially Paid Fee with Retro Remission resulting in a ZERO Balance Du const bulkScanPaymentMethod = 'cheque'; const emailAddress = `${stringUtil.getTodayDateAndTimeInString()}refundspaybubbleft1@mailtest.gov.uk`; - const totalAmount = '173.00'; - const feeAmount = '273.00'; + const totalAmount = '200.00'; + const feeAmount = '300.00'; const remissionAmount= '100.00'; const hwfReference= 'HWF-A1B-23C'; const ccdAndDcn = await apiUtils.bulkScanNormalCcd('AA08', totalAmount, bulkScanPaymentMethod); @@ -191,7 +191,7 @@ Scenario('Partially Paid Fee with Retro Remission resulting in a NEGATIVE Balanc const bulkScanPaymentMethod = 'cheque'; const emailAddress = `${stringUtil.getTodayDateAndTimeInString()}refundspaybubbleft1@mailtest.gov.uk`; const totalAmount = '150.00'; - const feeAmount = '273.00'; + const feeAmount = '300.00'; const remissionAmount= '100.00'; const hwfReference= 'HWF-A1B-23C'; const ccdAndDcn = await apiUtils.bulkScanNormalCcd('AA08', totalAmount, bulkScanPaymentMethod); @@ -211,13 +211,13 @@ Scenario('Partially Paid Fee with Retro Remission resulting in a NEGATIVE Balanc FeesSummary.verifyFeeSummaryBulkScan(ccdCaseNumberFormatted, 'FEE0219', feeAmount, true); I.wait(CCPBATConstants.twoSecondWaitTime); ConfirmAssociation.verifyConfirmAssociationShortfallPayment('FEE0219', '1', - totalAmount, feeAmount, feeAmount, '123.00'); + totalAmount, feeAmount, feeAmount, '150.00'); ConfirmAssociation.selectShortfallReasonExplainatoryAndUser('Help with Fees', 'Contact applicant'); ConfirmAssociation.confirmPayment(); I.wait(CCPBATConstants.fiveSecondWaitTime); - CaseTransaction.checkBulkCaseShortfallSuccessPaymentPartiallyPaid(ccdCaseNumberFormatted, 'Case reference', 'Partially paid', '123.00'); + CaseTransaction.checkBulkCaseShortfallSuccessPaymentPartiallyPaid(ccdCaseNumberFormatted, 'Case reference', 'Partially paid', '150.00'); CaseTransaction.checkIfBulkScanPaymentsAllocated(dcnNumber); - await CaseTransaction.validateCaseTransactionsDetails(totalAmount, '0', '0.00', '123.00', '0.00'); + await CaseTransaction.validateCaseTransactionsDetails(totalAmount, '0', '0.00', '150.00', '0.00'); // remission refund - 100 await I.click('(//*[text()[contains(.,"Review")]])[2]'); I.wait(CCPBATConstants.fifteenSecondWaitTime); @@ -246,7 +246,7 @@ Scenario('Partially Paid Fee with Retro Remission resulting in a NEGATIVE Balanc I.click('Return to case'); I.wait(CCPBATConstants.tenSecondWaitTime); I.waitForElement('(//*[text()[contains(.,"Review")]])[2]', 5); - await CaseTransaction.validateCaseTransactionsDetails(totalAmount, '0', remissionAmount, '23.00', '0.00'); + await CaseTransaction.validateCaseTransactionsDetails(totalAmount, '0', remissionAmount, '50.00', '0.00'); await I.click('(//*[text()[contains(.,"Review")]])[2]'); I.wait(CCPBATConstants.tenSecondWaitTime); I.waitForText('Payment details', 5); @@ -364,7 +364,7 @@ Scenario('Partially Paid (multi-fees) with Retro Remission resulting in a POSITI const bulkScanPaymentMethod = 'cheque'; const emailAddress = `${stringUtil.getTodayDateAndTimeInString()}refundspaybubbleft1@mailtest.gov.uk`; - const totalAmount = 300; + const totalAmount = '332.00'; const ccdAndDcn = await apiUtils.bulkScanNormalCcd('AA08', totalAmount, bulkScanPaymentMethod); const dcnNumber = ccdAndDcn[0]; const ccdCaseNumber = ccdAndDcn[1]; @@ -375,19 +375,19 @@ Scenario('Partially Paid (multi-fees) with Retro Remission resulting in a POSITI await miscUtils.multipleSearch(CaseSearch, I, ccdCaseNumber); I.wait(CCPBATConstants.tenSecondWaitTime); CaseTransaction.checkBulkCase(ccdCaseNumberFormatted, 'Case reference'); - CaseTransaction.checkUnallocatedPayments('1', dcnNumber, '300.00', 'cheque'); + CaseTransaction.checkUnallocatedPayments('1', dcnNumber, totalAmount, 'cheque'); CaseTransaction.allocateToNewFee(); I.wait(CCPBATConstants.twoSecondWaitTime); - await AddFees.addFeesAmount('273.00', 'family', 'probate_registry'); - FeesSummary.verifyFeeSummaryBulkScan(ccdCaseNumberFormatted, 'FEE0219', '273.00', false); + await AddFees.addFeesAmount('300.00', 'family', 'probate_registry'); + FeesSummary.verifyFeeSummaryBulkScan(ccdCaseNumberFormatted, 'FEE0219', '300.00', false); I.wait(CCPBATConstants.twoSecondWaitTime); FeesSummary.addFeeFromSummary(); - await AddFees.addFees('50.00', 'family', 'family_court'); - FeesSummary.verifyFeeSummaryBulkScan(ccdCaseNumberFormatted, 'FEE0258', '50.00', true); + await AddFees.addFees('55.00', 'family', 'family_court'); + FeesSummary.verifyFeeSummaryBulkScan(ccdCaseNumberFormatted, 'FEE0258', '55.00', true); I.wait(CCPBATConstants.tenSecondWaitTime); - ConfirmAssociation.verifyConfirmAssociationShortfallPayment('FEE0219', '1', '300.00', '273.00', '273.00', '23.00'); - ConfirmAssociation.verifyConfirmAssociationShortfallPayment('FEE0258', '1', '300.00', '50.00', '50.00', '23.00'); + ConfirmAssociation.verifyConfirmAssociationShortfallPayment('FEE0219', '1', totalAmount, '300.00', '300.00', '23.00'); + ConfirmAssociation.verifyConfirmAssociationShortfallPayment('FEE0258', '1', totalAmount, '55.00', '55.00', '23.00'); ConfirmAssociation.selectShortfallReasonExplainatoryAndUser('Help with Fees', 'Contact applicant'); ConfirmAssociation.confirmPayment(); @@ -395,7 +395,7 @@ Scenario('Partially Paid (multi-fees) with Retro Remission resulting in a POSITI CaseTransaction.checkBulkCaseShortfallSuccessPaymentPartiallyPaid(ccdCaseNumberFormatted, 'Case reference', 'Partially paid', '23.00'); CaseTransaction.checkIfBulkScanPaymentsAllocated(dcnNumber); // remission refund - 100 - await CaseTransaction.validateCaseTransactionsDetails('300.00', '0', '0.00', '23.00', '0.00'); + await CaseTransaction.validateCaseTransactionsDetails(totalAmount, '0', '0.00', '23.00', '0.00'); await I.click('(//*[text()[contains(.,"Review")]])[2]'); I.wait(CCPBATConstants.fifteenSecondWaitTime); const paymentRcReference = await I.grabTextFrom(CaseTransaction.locators.rc_reference); @@ -415,7 +415,7 @@ Scenario('Partially Paid (multi-fees) with Retro Remission resulting in a POSITI I.wait(CCPBATConstants.fiveSecondWaitTime); InitiateRefunds.verifyProcessRemissionAmountPage(ccdCaseNumber, '50.00'); I.wait(CCPBATConstants.fiveSecondWaitTime); - const checkYourAnswersData = assertionData.checkYourAnswers(paymentRcReference, 'HWF-A1B-23C', '£27.00', '£300.00', '£50.00', 'FEE0258', 'FEE0258 - Application for a maintenance order to be registered 1950 Act or 1958 Act', + const checkYourAnswersData = assertionData.checkYourAnswers(paymentRcReference, 'HWF-A1B-23C', '£27.00', totalAmount, '£55.00', 'FEE0258', 'FEE0258 - Application for a maintenance order to be registered 1950 Act or 1958 Act', emailAddress, '', 'SendRefund', '£50.00'); InitiateRefunds.verifyCheckYourAnswersPageForAddRemission(checkYourAnswersData, false, false); I.wait(CCPBATConstants.fiveSecondWaitTime); @@ -429,7 +429,7 @@ Scenario('Partially Paid (multi-fees) with Retro Remission resulting in a POSITI I.wait(CCPBATConstants.tenSecondWaitTime); const refundRefRemissions = await InitiateRefunds.verifyRefundSubmittedPage('27.00'); I.wait(CCPBATConstants.tenSecondWaitTime); - await CaseTransaction.validateCaseTransactionsDetails('300.00', '0', '50.00', '0.00', '27.00'); + await CaseTransaction.validateCaseTransactionsDetails(totalAmount, '0', '50.00', '0.00', '27.00'); await I.Logout(); I.clearCookie(); I.wait(CCPBATConstants.fiveSecondWaitTime); @@ -447,7 +447,7 @@ Scenario('Partially Paid (multi-fees) with Retro Remission resulting in a POSITI I.click('Case Transaction'); await miscUtils.multipleSearch(CaseSearch, I, ccdCaseNumber); I.wait(CCPBATConstants.tenSecondWaitTime); - await CaseTransaction.validateCaseTransactionsDetails('300.00', '0', '50.00', '0.00', '27.00'); + await CaseTransaction.validateCaseTransactionsDetails(totalAmount, '0', '50.00', '0.00', '27.00'); await I.click(`//td[contains(.,'${refundRefRemissions}')]/following-sibling::td/a[.=\'Review\'][1]`); I.wait(CCPBATConstants.tenSecondWaitTime); const reviewRemissionRefundDetailsDataAfterApproval = assertionData.reviewRefundDetailsDataAfterApproverAction(refundRefRemissions, paymentRcReference, 'Retrospective remission', '£27.00', emailAddress, '', 'payments probate', 'approver probate'); @@ -458,9 +458,10 @@ Scenario('Partially Paid (multi-fees) with Retro Remission resulting in a POSITI I.wait(CCPBATConstants.fiveSecondWaitTime); I.click('Back'); I.wait(CCPBATConstants.fiveSecondWaitTime); - await CaseTransaction.validateCaseTransactionsDetails('300.00', '0', '50.00', '0.00', '0.00'); + await CaseTransaction.validateCaseTransactionsDetails(totalAmount, '0', '50.00', '0.00', '0.00'); await I.Logout(); I.clearCookie(); I.wait(CCPBATConstants.fiveSecondWaitTime); - }).tag('@pipeline @nightly'); + I.wait(CCPBATConstants.fiveSecondWaitTime); + }); //.tag('@pipeline @nightly');