Skip to content

Commit

Permalink
Specify loan type
Browse files Browse the repository at this point in the history
  • Loading branch information
sviatlana-stsiapanava committed Jan 24, 2025
1 parent 3d5fb01 commit 9f94fd3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 9f94fd3

Please sign in to comment.