From 2197ecab3bea8afed5ded7e9e76a310e00451b39 Mon Sep 17 00:00:00 2001 From: Sherzod Kenjaev Date: Wed, 18 Dec 2024 20:51:02 +0500 Subject: [PATCH] Eureka test fixes --- ...rted-marcAuth-record-from-central-updated-in-member.cy.js | 4 ++-- .../marc/marc-authority/marc-authority-edit-central.cy.js | 2 ++ .../derive-from-local-marc-bib-in-member.cy.js | 4 ++++ .../derive-from-shared-marc-bib-in-central.cy.js | 4 ++++ .../derive-from-shared-marc-bib-in-member.cy.js | 4 ++++ ...king-shared-marcBib-with-shared-marcAuth-on-central.cy.js | 5 +++++ .../manual-linking/marc-bib-shared-link-shared-central.cy.js | 4 ++++ .../manual-linking/marc-bib-shared-link-shared-member.cy.js | 2 ++ .../support/fragments/inventory/inventorySearchAndFilter.js | 2 +- 9 files changed, 28 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/consortia/data-import/importing-marcAuthority-files/updated-imported-marcAuth-record-from-central-updated-in-member.cy.js b/cypress/e2e/consortia/data-import/importing-marcAuthority-files/updated-imported-marcAuth-record-from-central-updated-in-member.cy.js index 1cdacc7fb3..9a1a4d63d3 100644 --- a/cypress/e2e/consortia/data-import/importing-marcAuthority-files/updated-imported-marcAuth-record-from-central-updated-in-member.cy.js +++ b/cypress/e2e/consortia/data-import/importing-marcAuthority-files/updated-imported-marcAuth-record-from-central-updated-in-member.cy.js @@ -203,7 +203,7 @@ describe('Data Import', () => { MarcAuthorities.verifyAllCheckboxesAreUnchecked(); MarcAuthorities.verifyTextOfPaneHeaderMarcAuthority('1 record found'); - TopMenuNavigation.openAppFromDropdown(APPLICATION_NAMES.DATA_EXPORT); + TopMenuNavigation.navigateToApp(APPLICATION_NAMES.DATA_EXPORT); ExportFile.uploadFile(testData.csvFile); ExportFile.exportWithDefaultJobProfile(testData.csvFile, 'authority', 'Authorities'); ExportFile.downloadExportedMarcFile(testData.exportedMarcFile); @@ -215,7 +215,7 @@ describe('Data Import', () => { testData.modifiedMarcFile, ); // upload the exported marc file with 999.f.f.s fields - TopMenuNavigation.openAppFromDropdown(APPLICATION_NAMES.DATA_IMPORT); + TopMenuNavigation.navigateToApp(APPLICATION_NAMES.DATA_IMPORT); DataImport.verifyUploadState(); DataImport.uploadFile(testData.modifiedMarcFile, testData.uploadModifiedMarcFile); JobProfiles.waitLoadingList(); diff --git a/cypress/e2e/consortia/marc/marc-authority/marc-authority-edit-central.cy.js b/cypress/e2e/consortia/marc/marc-authority/marc-authority-edit-central.cy.js index 42821f51f6..f0fc0dbb38 100644 --- a/cypress/e2e/consortia/marc/marc-authority/marc-authority-edit-central.cy.js +++ b/cypress/e2e/consortia/marc/marc-authority/marc-authority-edit-central.cy.js @@ -113,6 +113,8 @@ describe('MARC', () => { QuickMarcEditor.clickArrowDownButton(4); QuickMarcEditor.verifyTagValue(5, testData.tag010); MarcAuthority.clickSaveAndCloseButton(); + cy.wait(2000); + MarcAuthority.clickSaveAndCloseButton(); QuickMarcEditor.checkDeleteModal(1); MarcAuthority.continueWithSaveAndCheck(); MarcAuthority.contains(testData.updatedTag100Value); diff --git a/cypress/e2e/consortia/marc/marc-bibliographic/derive-marcBib/derive-from-local-marc-bib-in-member.cy.js b/cypress/e2e/consortia/marc/marc-bibliographic/derive-marcBib/derive-from-local-marc-bib-in-member.cy.js index e05346f5f1..9c2cc1c051 100644 --- a/cypress/e2e/consortia/marc/marc-bibliographic/derive-marcBib/derive-from-local-marc-bib-in-member.cy.js +++ b/cypress/e2e/consortia/marc/marc-bibliographic/derive-marcBib/derive-from-local-marc-bib-in-member.cy.js @@ -117,6 +117,8 @@ describe('MARC', () => { QuickMarcEditor.updateExistingField(testData.tag245, testData.tag245DerivedContent); QuickMarcEditor.checkContentByTag(testData.tag245, testData.tag245DerivedContent); QuickMarcEditor.pressSaveAndClose(); + cy.wait(2000); + QuickMarcEditor.pressSaveAndClose(); QuickMarcEditor.checkAfterSaveAndCloseDerive(); InventoryInstance.checkSharedTextInDetailView(false); InventoryInstance.checkExpectedMARCSource(); @@ -129,6 +131,8 @@ describe('MARC', () => { QuickMarcEditor.updateExistingField(testData.tag245, testData.tag245EditedContent); QuickMarcEditor.checkContentByTag(testData.tag245, testData.tag245EditedContent); QuickMarcEditor.pressSaveAndClose(); + cy.wait(2000); + QuickMarcEditor.pressSaveAndClose(); QuickMarcEditor.checkAfterSaveAndClose(); InventoryInstance.checkSharedTextInDetailView(false); InventoryInstance.checkExpectedMARCSource(); diff --git a/cypress/e2e/consortia/marc/marc-bibliographic/derive-marcBib/derive-from-shared-marc-bib-in-central.cy.js b/cypress/e2e/consortia/marc/marc-bibliographic/derive-marcBib/derive-from-shared-marc-bib-in-central.cy.js index ec7519aab1..a2fc994a09 100644 --- a/cypress/e2e/consortia/marc/marc-bibliographic/derive-marcBib/derive-from-shared-marc-bib-in-central.cy.js +++ b/cypress/e2e/consortia/marc/marc-bibliographic/derive-marcBib/derive-from-shared-marc-bib-in-central.cy.js @@ -97,6 +97,8 @@ describe('MARC', () => { QuickMarcEditor.updateExistingField(testData.tag245, testData.tag245DerivedContent); QuickMarcEditor.checkContentByTag(testData.tag245, testData.tag245DerivedContent); QuickMarcEditor.pressSaveAndClose(); + cy.wait(2000); + QuickMarcEditor.pressSaveAndClose(); QuickMarcEditor.checkAfterSaveAndCloseDerive(); InventoryInstance.checkSharedTextInDetailView(); InventoryInstance.checkExpectedMARCSource(); @@ -118,6 +120,8 @@ describe('MARC', () => { QuickMarcEditor.updateExistingField(testData.tag245, testData.tag245EditedContent); QuickMarcEditor.checkContentByTag(testData.tag245, testData.tag245EditedContent); QuickMarcEditor.pressSaveAndClose(); + cy.wait(2000); + QuickMarcEditor.pressSaveAndClose(); QuickMarcEditor.checkAfterSaveAndClose(); InventoryInstance.checkSharedTextInDetailView(); InventoryInstance.checkExpectedMARCSource(); diff --git a/cypress/e2e/consortia/marc/marc-bibliographic/derive-marcBib/derive-from-shared-marc-bib-in-member.cy.js b/cypress/e2e/consortia/marc/marc-bibliographic/derive-marcBib/derive-from-shared-marc-bib-in-member.cy.js index 9ff08b0431..eb243c389f 100644 --- a/cypress/e2e/consortia/marc/marc-bibliographic/derive-marcBib/derive-from-shared-marc-bib-in-member.cy.js +++ b/cypress/e2e/consortia/marc/marc-bibliographic/derive-marcBib/derive-from-shared-marc-bib-in-member.cy.js @@ -114,6 +114,8 @@ describe('MARC', () => { QuickMarcEditor.updateExistingField(testData.tag245, testData.tag245DerivedContent); QuickMarcEditor.checkContentByTag(testData.tag245, testData.tag245DerivedContent); QuickMarcEditor.pressSaveAndClose(); + cy.wait(2000); + QuickMarcEditor.pressSaveAndClose(); QuickMarcEditor.checkAfterSaveAndCloseDerive(); InventoryInstance.checkSharedTextInDetailView(false); InventoryInstance.checkExpectedMARCSource(); @@ -126,6 +128,8 @@ describe('MARC', () => { QuickMarcEditor.updateExistingField(testData.tag245, testData.tag245EditedContent); QuickMarcEditor.checkContentByTag(testData.tag245, testData.tag245EditedContent); QuickMarcEditor.pressSaveAndClose(); + cy.wait(2000); + QuickMarcEditor.pressSaveAndClose(); QuickMarcEditor.checkAfterSaveAndClose(); InventoryInstance.checkSharedTextInDetailView(false); InventoryInstance.checkExpectedMARCSource(); diff --git a/cypress/e2e/consortia/marc/marc-bibliographic/edit-marc-bib/automated-linking/auto-linking-shared-marcBib-with-shared-marcAuth-on-central.cy.js b/cypress/e2e/consortia/marc/marc-bibliographic/edit-marc-bib/automated-linking/auto-linking-shared-marcBib-with-shared-marcAuth-on-central.cy.js index 7c2bdbac9a..c7afe1141a 100644 --- a/cypress/e2e/consortia/marc/marc-bibliographic/edit-marc-bib/automated-linking/auto-linking-shared-marcBib-with-shared-marcAuth-on-central.cy.js +++ b/cypress/e2e/consortia/marc/marc-bibliographic/edit-marc-bib/automated-linking/auto-linking-shared-marcBib-with-shared-marcAuth-on-central.cy.js @@ -176,7 +176,11 @@ describe('MARC', () => { QuickMarcEditor.verifyTagFieldAfterLinking(...testData.linked600Field_1); QuickMarcEditor.verifyTagFieldAfterLinking(...testData.linked600Field_2); QuickMarcEditor.verifyTagFieldAfterLinking(...testData.linked650Field); + QuickMarcEditor.deleteFieldByTagAndCheck('010'); QuickMarcEditor.pressSaveAndClose(); + cy.wait(2000); + QuickMarcEditor.pressSaveAndClose(); + QuickMarcEditor.confirmDeletingFields(); QuickMarcEditor.checkAfterSaveAndClose(); InventoryInstance.checkExpectedMARCSource(); @@ -187,6 +191,7 @@ describe('MARC', () => { InventoryInstances.selectInstance(); InventoryInstance.checkExpectedMARCSource(); InventoryInstance.editMarcBibliographicRecord(); + QuickMarcEditor.addEmptyFields(5); QuickMarcEditor.checkPaneheaderContains(testData.editSharedRecordText); QuickMarcEditor.verifyTagFieldAfterLinking(...testData.linked100Field); QuickMarcEditor.verifyTagFieldAfterLinking(...testData.linked600Field_1); diff --git a/cypress/e2e/consortia/marc/marc-bibliographic/manual-linking/marc-bib-shared-link-shared-central.cy.js b/cypress/e2e/consortia/marc/marc-bibliographic/manual-linking/marc-bib-shared-link-shared-central.cy.js index b8e687c1b3..b47c65bb10 100644 --- a/cypress/e2e/consortia/marc/marc-bibliographic/manual-linking/marc-bib-shared-link-shared-central.cy.js +++ b/cypress/e2e/consortia/marc/marc-bibliographic/manual-linking/marc-bib-shared-link-shared-central.cy.js @@ -131,7 +131,11 @@ describe('MARC', () => { linkingTagAndValues.zeroSubfield, linkingTagAndValues.seventhBox, ); + QuickMarcEditor.deleteFieldByTagAndCheck('010'); QuickMarcEditor.pressSaveAndClose(); + cy.wait(2000); + QuickMarcEditor.pressSaveAndClose(); + QuickMarcEditor.confirmDeletingFields(); QuickMarcEditor.checkAfterSaveAndClose(); InventoryInstance.checkInstanceTitle(testData.instanceTitle); diff --git a/cypress/e2e/consortia/marc/marc-bibliographic/manual-linking/marc-bib-shared-link-shared-member.cy.js b/cypress/e2e/consortia/marc/marc-bibliographic/manual-linking/marc-bib-shared-link-shared-member.cy.js index 4422b6b6d1..4eb1e6c391 100644 --- a/cypress/e2e/consortia/marc/marc-bibliographic/manual-linking/marc-bib-shared-link-shared-member.cy.js +++ b/cypress/e2e/consortia/marc/marc-bibliographic/manual-linking/marc-bib-shared-link-shared-member.cy.js @@ -150,6 +150,8 @@ describe('MARC', () => { linkingTagAndValues.seventhBox, ); QuickMarcEditor.pressSaveAndClose(); + cy.wait(2000); + QuickMarcEditor.pressSaveAndClose(); QuickMarcEditor.checkAfterSaveAndClose(); InventoryInstance.checkInstanceTitle(testData.instanceTitle); diff --git a/cypress/support/fragments/inventory/inventorySearchAndFilter.js b/cypress/support/fragments/inventory/inventorySearchAndFilter.js index 15ded13f1d..52a03ef09f 100644 --- a/cypress/support/fragments/inventory/inventorySearchAndFilter.js +++ b/cypress/support/fragments/inventory/inventorySearchAndFilter.js @@ -1098,7 +1098,7 @@ export default { }, clearFilter(accordionName) { - cy.do(Button({ ariaLabel: `Clear selected filters for "${accordionName}"` }).click()); + cy.do(Button({ ariaLabel: `Clear selected ${accordionName} filters` }).click()); }, checkSharedInstancesInResultList() {