diff --git a/cypress/e2e/fees-&-fines/fee-fine-history.cy.js b/cypress/e2e/fees-&-fines/fee-fine-history.cy.js index a8303dd89e..706d4e7df0 100644 --- a/cypress/e2e/fees-&-fines/fee-fine-history.cy.js +++ b/cypress/e2e/fees-&-fines/fee-fine-history.cy.js @@ -77,6 +77,8 @@ describe('Fees&Fines', () => { cy.createTempUser([ permissions.uiUsersView.gui, permissions.uiUsersfeefinesCRUD.gui, + permissions.feesfinesCheckPay.gui, + permissions.feesfinesPay.gui, permissions.uiUsersViewServicePoints.gui, permissions.uiUsersfeefinesView.gui, permissions.uiFeeFinesActions.gui, diff --git a/cypress/e2e/fees-&-fines/patron-groups.cy.js b/cypress/e2e/fees-&-fines/patron-groups.cy.js index e42df8cede..a546763c2a 100644 --- a/cypress/e2e/fees-&-fines/patron-groups.cy.js +++ b/cypress/e2e/fees-&-fines/patron-groups.cy.js @@ -31,7 +31,7 @@ describe('Fees&Fines', () => { testData.username = userProperties.username; Conditions.getConditionsViaApi().then((patronBlockConditions) => { const testCondition = - Conditions.defaultConditions.defaultMaximumOustandingFeeFineBalance; + Conditions.defaultConditions.defaultMaximumOutstandingFeeFineBalance; testData.testConditionId = patronBlockConditions.filter( (conditionProperty) => conditionProperty.name === testCondition.name, )[0].id; diff --git a/cypress/e2e/patron-notices/overdue-fine-renewed-triggers.cy.js b/cypress/e2e/patron-notices/overdue-fine-renewed-triggers.cy.js index fccf3f67fe..72788be50d 100644 --- a/cypress/e2e/patron-notices/overdue-fine-renewed-triggers.cy.js +++ b/cypress/e2e/patron-notices/overdue-fine-renewed-triggers.cy.js @@ -243,6 +243,8 @@ describe('Patron notices', () => { Permissions.uiCirculationSettingsNoticePolicies.gui, Permissions.uiUsersfeefinesCRUD.gui, Permissions.uiUserAccounts.gui, + Permissions.feesfinesCheckPay.gui, + Permissions.feesfinesPay.gui, ], patronGroup.name, ) diff --git a/cypress/e2e/patron-notices/overdue-fine-returned-triggers.cy.js b/cypress/e2e/patron-notices/overdue-fine-returned-triggers.cy.js index d19729fc44..5e42414871 100644 --- a/cypress/e2e/patron-notices/overdue-fine-returned-triggers.cy.js +++ b/cypress/e2e/patron-notices/overdue-fine-returned-triggers.cy.js @@ -233,6 +233,8 @@ describe('Patron notices', () => { permissions.uiCirculationSettingsNoticePolicies.gui, permissions.uiUsersfeefinesCRUD.gui, permissions.uiUserAccounts.gui, + permissions.feesfinesCheckPay.gui, + permissions.feesfinesPay.gui, ], patronGroup.name, ) diff --git a/cypress/support/dictionary/permissions.js b/cypress/support/dictionary/permissions.js index d2336f0089..c5d8a0f8f8 100644 --- a/cypress/support/dictionary/permissions.js +++ b/cypress/support/dictionary/permissions.js @@ -475,6 +475,14 @@ export default { internal: 'ui-users.feesfines.actions.all', gui: 'Users: Can create, edit and remove fees/fines', }, + feesfinesCheckPay: { + internal: 'feesfines.accounts.check-pay.post', + gui: 'accounts payment check post', + }, + feesfinesPay: { + internal: 'feesfines.accounts.pay.post', + gui: 'accounts payment post', + }, uiUsersPatronBlocks: { internal: 'ui-users.patron-blocks.all', gui: 'Users: Can create, edit and remove patron blocks', diff --git a/cypress/support/fragments/settings/users/conditions.js b/cypress/support/fragments/settings/users/conditions.js index 5c93114abb..84984d0b93 100644 --- a/cypress/support/fragments/settings/users/conditions.js +++ b/cypress/support/fragments/settings/users/conditions.js @@ -14,7 +14,7 @@ const resetCondition = (conditionValue) => { }; const defaultConditions = { - defaultMaximumOustandingFeeFineBalance: { + defaultMaximumOutstandingFeeFineBalance: { // required field id: undefined, name: 'Maximum outstanding fee/fine balance', diff --git a/cypress/support/fragments/users/payFeeFaine.js b/cypress/support/fragments/users/payFeeFaine.js index 04ecb33668..209e17887b 100644 --- a/cypress/support/fragments/users/payFeeFaine.js +++ b/cypress/support/fragments/users/payFeeFaine.js @@ -17,7 +17,10 @@ export default { cy.expect(rootModal.exists()); }, checkAmount: (amount) => cy.expect(amountTextfield.has({ value: amount.toFixed(2) })), - setPaymentMethod: ({ name: paymentMethodName }) => cy.get('div[class^=modal-] select[name=method]').select(paymentMethodName), + setPaymentMethod: ({ name: paymentMethodName }) => { + cy.get('div[class^=modal-] select[name=method]').select(paymentMethodName); + cy.wait(500); + }, fillInAdditionalInformation: (comment) => { cy.do(rootModal.find(TextArea({ name: 'comment' })).fillIn(comment)); }, @@ -33,7 +36,10 @@ export default { ); }, checkPartialPayConfirmation: () => cy.expect(confirmationModal.find(HTML(including('will be partially paid'))).exists), - setAmount: (amount) => cy.do(amountTextfield.fillIn(amount.toString())), + setAmount(amount) { + cy.do(amountTextfield.fillIn(amount.toString())); + cy.wait(500); + }, back: () => cy.do( confirmationModal .find(Button({ id: matching('clickable-confirmation-[0-9]+-cancel') })) diff --git a/cypress/support/fragments/users/userCharge.js b/cypress/support/fragments/users/userCharge.js index 85aeecfc89..6c12bdb178 100644 --- a/cypress/support/fragments/users/userCharge.js +++ b/cypress/support/fragments/users/userCharge.js @@ -9,13 +9,17 @@ export default { cy.expect(rootModal.exists()); }, fillRequiredFields: (ownerId, feeFineType, feeFineAmount) => { + cy.wait(500); cy.do(rootModal.find(Select({ id: 'ownerId' })).choose(ownerId)); + cy.wait(500); cy.do(rootModal.find(Select({ id: 'feeFineType' })).choose(feeFineType)); + cy.wait(500); if (!feeFineAmount) { cy.expect(rootModal.find(TextField('Fee/fine amount*')).has({ text: not('') })); } }, chargeOnly: () => { + cy.wait(500); cy.do(rootModal.find(Button({ id: 'chargeOnly' })).click()); UsersCard.waitLoading(); }, diff --git a/cypress/support/fragments/users/usersCard.js b/cypress/support/fragments/users/usersCard.js index 00e32714d9..6151ec5698 100644 --- a/cypress/support/fragments/users/usersCard.js +++ b/cypress/support/fragments/users/usersCard.js @@ -460,8 +460,10 @@ export default { waitLoading: () => cy.expect(rootSection.exists()), startFeeFine: () => { + cy.wait(500); cy.do(actionsButton.click()); cy.do(Button('Create fee/fine').click()); + cy.wait(500); }, startRequest: () => {