Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TetianaParanich committed Dec 20, 2024
1 parent af3ece3 commit 550c8d3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ describe('Data Import', () => {
cy.setTenant(Affiliations.College).then(() => {
// use cy.getToken function to get toket for current tenant
TopMenuNavigation.navigateToApp(APPLICATION_NAMES.DATA_EXPORT);
cy.wait(5000);
ExportFile.downloadExportedMarcFileWithRecordHrid(
expectedRecordHrid,
testData.marcFile.exportedFileName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ describe('Data Import', () => {

// download exported marc file
TopMenuNavigation.navigateToApp(APPLICATION_NAMES.DATA_EXPORT);
cy.wait(5000);
ExportFile.downloadExportedMarcFileWithRecordHrid(
expectedRecordHrid,
testData.marcFile.exportedFileName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ describe('Data Import', () => {
// download exported marc file
TopMenuNavigation.navigateToApp(APPLICATION_NAMES.DATA_EXPORT);
ExportFile.waitLandingPageOpened();
cy.wait(5000);
ExportFile.downloadExportedMarcFileWithRecordHrid(
expectedRecordHrid,
testData.marcFile.exportedFileName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ describe('Data Import', () => {
// use cy.getToken function to get toket for current tenant
TopMenuNavigation.navigateToApp(APPLICATION_NAMES.DATA_EXPORT);
ExportFile.waitLandingPageOpened();
cy.wait(5000);
ExportFile.downloadExportedMarcFileWithRecordHrid(
expectedRecordHrid,
testData.marcFile.exportedFileName,
Expand Down Expand Up @@ -227,6 +228,7 @@ describe('Data Import', () => {
InventorySearchAndFilter.verifyPanesExist();
ConsortiumManager.checkCurrentTenantInTopMenu(tenantNames.central);
ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.college);
InventoryInstances.waitContentLoading();
InventoryInstances.searchByTitle(testData.sharedInstanceId);
InventoryInstance.waitInstanceRecordViewOpened(testData.updatedInstanceTitle);
// TO DO: fix this check failure - 'Unknown user' is shown, possibly due to the way users are created in test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ describe('Inventory', () => {

// download exported marc file
cy.getAdminToken();
cy.getAdminToken();
cy.setTenant(Affiliations.College).then(() => {
TopMenuNavigation.openAppFromDropdown(APPLICATION_NAMES.DATA_EXPORT);
ExportFile.waitLandingPageOpened();
cy.wait(5000);
ExportFile.downloadExportedMarcFileWithRecordHrid(
expectedRecordHrid,
testData.exportedFileName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ describe('Data Import', () => {
Permissions.uiOrdersApprovePurchaseOrders.gui,
Permissions.uiInventoryViewCreateEditHoldings.gui,
Permissions.uiInventoryViewCreateEditInstances.gui,
Permissions.uiInventoryViewCreateEditItems,
Permissions.uiInventoryViewCreateEditItems.gui,
Permissions.uiInventoryViewInstances.gui,
Permissions.uiQuickMarcQuickMarcBibliographicEditorView.gui,
]).then((userProperties) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ describe('Data Import', () => {
Permissions.uiOrdersEdit.gui,
Permissions.uiInventoryViewCreateEditHoldings.gui,
Permissions.uiInventoryViewCreateEditInstances.gui,
Permissions.uiInventoryViewCreateEditItems,
Permissions.uiInventoryViewCreateEditItems.gui,
Permissions.settingsDataImportEnabled.gui,
Permissions.moduleDataImportEnabled.gui,
Permissions.uiReceivingViewEditCreate.gui,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ describe('Data Import', () => {
FileDetails.openInstanceInInventory(RECORD_STATUSES.CREATED);
InventoryInstance.getAssignedHRID().then((initialInstanceHrId) => {
instanceHrid = initialInstanceHrId;
InventorySearchAndFilter.resetAll();
InventorySearchAndFilter.waitLoading();
// check fields are absent in the view source
TopMenuNavigation.navigateToApp(APPLICATION_NAMES.INVENTORY);
InventorySearchAndFilter.searchInstanceByHRID(instanceHrid);
InstanceRecordView.verifyInstancePaneExists();
InventoryInstance.verifyResourceIdentifier(
Expand Down

0 comments on commit 550c8d3

Please sign in to comment.