Skip to content

Commit

Permalink
fixed ecs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TetianaParanich committed Dec 26, 2024
1 parent bbcbc86 commit 97ab0ab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe('Inventory', () => {
};

before('Create test data', () => {
cy.getAdminToken();
cy.createTempUser([Permissions.uiInventoryViewCreateEditInstances.gui]).then(
(userProperties) => {
user = userProperties;
Expand Down Expand Up @@ -67,7 +66,9 @@ describe('Inventory', () => {
verifySearchAndFilterPane();
const InventoryNewInstance = InventoryInstances.addNewInventory();
InventoryNewInstance.fillRequiredValues(testData.instanceTitle);
cy.wait(1500);
InventoryNewInstance.clickSaveAndCloseButton();
cy.wait(1500);
InventoryInstance.checkInstanceDetails({
instanceInformation: [{ key: 'Source', value: INSTANCE_SOURCE_NAMES.FOLIO }],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ describe('Inventory', () => {
cy.getAdminToken();
Users.deleteViaApi(testData.user.userId);
InventoryInstance.deleteInstanceViaApi(testData.instance.instanceId);
cy.wait(10000);
StatisticalCodes.deleteViaApi(testData.statisticalCodeId);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ describe('Inventory', () => {
InventoryInstance.editMarcBibliographicRecord();
QuickMarcEditor.addNewField(testData.tag010.tag, testData.tag010.content, 3);
QuickMarcEditor.pressSaveAndClose();
cy.wait(1000);
QuickMarcEditor.pressSaveAndClose();
InventoryInstance.waitLoading();
InventoryInstance.checkInstanceDetails({
instanceInformation: [{ key: 'Source', value: testData.source }],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ConsortiumManager from '../../../../support/fragments/settings/consortium
import TopMenu from '../../../../support/fragments/topMenu';
import Users from '../../../../support/fragments/users/users';
import DateTools from '../../../../support/utils/dateTools';
import InteractorsTools from '../../../../support/utils/interactorsTools';
import getRandomPostfix from '../../../../support/utils/stringTools';

describe('Inventory', () => {
Expand Down Expand Up @@ -132,6 +133,7 @@ describe('Inventory', () => {
});
cy.wait(3000);
InventoryNewInstance.clickSaveAndCloseButton();
InteractorsTools.closeCalloutMessage();
InventoryInstance.checkAllInstanceDetails(
[
{ key: 'Cataloged date', value: instanceData.today },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ describe('Inventory', () => {
cy.resetTenant();
});

cy.getAdminToken();
cy.createTempUser([Permissions.uiInventoryViewCreateEditInstances.gui])
.then((userProperties) => {
testData.user = userProperties;
Expand Down

0 comments on commit 97ab0ab

Please sign in to comment.