Skip to content

Commit

Permalink
Eureka test fixes (#4567)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherzod-Kenjaev authored Dec 19, 2024
1 parent bdf006c commit d5101ec
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ describe('MARC', () => {
linkingTagAndValues.seventhBox,
);
QuickMarcEditor.pressSaveAndClose();
cy.wait(2000);
QuickMarcEditor.pressSaveAndClose();
QuickMarcEditor.checkAfterSaveAndClose();
InventoryInstance.checkInstanceTitle(testData.instanceTitle);

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

0 comments on commit d5101ec

Please sign in to comment.