From 9f94fd3084c514d53c61889d0552b3bf8cf8bd47 Mon Sep 17 00:00:00 2001 From: sviatlana-stsiapanava Date: Wed, 22 Jan 2025 19:00:44 +0500 Subject: [PATCH] Specify loan type --- ...k-edit-in-app-items-duplicate-notes-in-central-tenant.cy.js | 3 ++- .../in-app/bulk-edit-in-app-items-replace-with-action.cy.js | 3 ++- .../bulk-edit-in-app-items-staff-only-notes-in-central.cy.js | 3 ++- ...in-app-items-verify-add-note-action-in-Central-tenant.cy.js | 3 ++- ...tems-verify-change-note-type-action-in-Central-tenant.cy.js | 3 ++- ...tems-verify-remove-all-notes-action-in-central-tenant.cy.js | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-duplicate-notes-in-central-tenant.cy.js b/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-duplicate-notes-in-central-tenant.cy.js index 626cb38e8c..eff973013f 100644 --- a/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-duplicate-notes-in-central-tenant.cy.js +++ b/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-duplicate-notes-in-central-tenant.cy.js @@ -19,6 +19,7 @@ import { APPLICATION_NAMES, BULK_EDIT_TABLE_COLUMN_HEADERS, ITEM_STATUS_NAMES, + LOAN_TYPE_NAMES, } from '../../../../support/constants'; import TopMenuNavigation from '../../../../support/fragments/topMenuNavigation'; @@ -75,7 +76,7 @@ describe('Bulk-edit', () => { cy.getLocations({ query: 'name="DCB"' }).then((res) => { locationId = res.id; }); - cy.getLoanTypes({ limit: 1 }).then((res) => { + cy.getLoanTypes({ query: `name="${LOAN_TYPE_NAMES.CAN_CIRCULATE}"` }).then((res) => { loanTypeId = res[0].id; }); cy.getMaterialTypes({ limit: 1 }).then((res) => { diff --git a/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-replace-with-action.cy.js b/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-replace-with-action.cy.js index b98006fe09..cd9ce8eb18 100644 --- a/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-replace-with-action.cy.js +++ b/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-replace-with-action.cy.js @@ -26,6 +26,7 @@ import { APPLICATION_NAMES, BULK_EDIT_TABLE_COLUMN_HEADERS, ITEM_STATUS_NAMES, + LOAN_TYPE_NAMES, } from '../../../../support/constants'; import TopMenuNavigation from '../../../../support/fragments/topMenuNavigation'; @@ -94,7 +95,7 @@ describe('Bulk-edit', () => { cy.getLocations({ query: 'name="DCB"' }).then((res) => { locationId = res.id; }); - cy.getLoanTypes({ limit: 1 }).then((res) => { + cy.getLoanTypes({ query: `name="${LOAN_TYPE_NAMES.CAN_CIRCULATE}"` }).then((res) => { loanTypeId = res[0].id; }); cy.getMaterialTypes({ limit: 1 }).then((res) => { diff --git a/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-staff-only-notes-in-central.cy.js b/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-staff-only-notes-in-central.cy.js index a7169542d1..0ab5f5d651 100644 --- a/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-staff-only-notes-in-central.cy.js +++ b/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-staff-only-notes-in-central.cy.js @@ -22,6 +22,7 @@ import { APPLICATION_NAMES, BULK_EDIT_TABLE_COLUMN_HEADERS, ITEM_STATUS_NAMES, + LOAN_TYPE_NAMES, } from '../../../../support/constants'; import TopMenuNavigation from '../../../../support/fragments/topMenuNavigation'; @@ -98,7 +99,7 @@ describe('Bulk-edit', () => { cy.getLocations({ query: 'name="DCB"' }).then((res) => { locationId = res.id; }); - cy.getLoanTypes({ limit: 1 }).then((res) => { + cy.getLoanTypes({ query: `name="${LOAN_TYPE_NAMES.CAN_CIRCULATE}"` }).then((res) => { loanTypeId = res[0].id; }); cy.getMaterialTypes({ limit: 1 }).then((res) => { diff --git a/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-verify-add-note-action-in-Central-tenant.cy.js b/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-verify-add-note-action-in-Central-tenant.cy.js index 1206bf1e3f..042ddc37c0 100644 --- a/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-verify-add-note-action-in-Central-tenant.cy.js +++ b/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-verify-add-note-action-in-Central-tenant.cy.js @@ -22,6 +22,7 @@ import { APPLICATION_NAMES, BULK_EDIT_TABLE_COLUMN_HEADERS, ITEM_STATUS_NAMES, + LOAN_TYPE_NAMES, } from '../../../../support/constants'; import TopMenuNavigation from '../../../../support/fragments/topMenuNavigation'; @@ -99,7 +100,7 @@ describe('Bulk-edit', () => { cy.getLocations({ query: 'name="DCB"' }).then((res) => { locationId = res.id; }); - cy.getLoanTypes({ limit: 1 }).then((res) => { + cy.getLoanTypes({ query: `name="${LOAN_TYPE_NAMES.CAN_CIRCULATE}"` }).then((res) => { loanTypeId = res[0].id; }); cy.getMaterialTypes({ limit: 1 }).then((res) => { diff --git a/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-verify-change-note-type-action-in-Central-tenant.cy.js b/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-verify-change-note-type-action-in-Central-tenant.cy.js index 029a641f2e..684aeb376f 100644 --- a/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-verify-change-note-type-action-in-Central-tenant.cy.js +++ b/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-verify-change-note-type-action-in-Central-tenant.cy.js @@ -23,6 +23,7 @@ import { BULK_EDIT_TABLE_COLUMN_HEADERS, ITEM_STATUS_NAMES, ITEM_NOTE_TYPES, + LOAN_TYPE_NAMES, } from '../../../../support/constants'; import TopMenuNavigation from '../../../../support/fragments/topMenuNavigation'; @@ -104,7 +105,7 @@ describe('Bulk-edit', () => { cy.getLocations({ query: 'name="DCB"' }).then((res) => { locationId = res.id; }); - cy.getLoanTypes({ limit: 1 }).then((res) => { + cy.getLoanTypes({ query: `name="${LOAN_TYPE_NAMES.CAN_CIRCULATE}"` }).then((res) => { loanTypeId = res[0].id; }); cy.getMaterialTypes({ limit: 1 }).then((res) => { diff --git a/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-verify-remove-all-notes-action-in-central-tenant.cy.js b/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-verify-remove-all-notes-action-in-central-tenant.cy.js index 312a350693..d40dd69545 100644 --- a/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-verify-remove-all-notes-action-in-central-tenant.cy.js +++ b/cypress/e2e/consortia/bulk-edit/in-app/bulk-edit-in-app-items-verify-remove-all-notes-action-in-central-tenant.cy.js @@ -23,6 +23,7 @@ import { BULK_EDIT_TABLE_COLUMN_HEADERS, ITEM_STATUS_NAMES, ITEM_NOTE_TYPES, + LOAN_TYPE_NAMES, } from '../../../../support/constants'; import TopMenuNavigation from '../../../../support/fragments/topMenuNavigation'; @@ -100,7 +101,7 @@ describe('Bulk-edit', () => { cy.getLocations({ query: 'name="DCB"' }).then((res) => { locationId = res.id; }); - cy.getLoanTypes({ limit: 1 }).then((res) => { + cy.getLoanTypes({ query: `name="${LOAN_TYPE_NAMES.CAN_CIRCULATE}"` }).then((res) => { loanTypeId = res[0].id; }); cy.getMaterialTypes({ limit: 1 }).then((res) => {