Skip to content

Commit

Permalink
ecs test fixes (#3163)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherzod-Kenjaev committed Feb 5, 2024
1 parent 742da5a commit d7006b0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('MARC', () => {
thirdBox: '\\',
content: '$a C407654 Lentz Local M1 (Updated in M1)',
eSubfield: '',
zeroSubfield: '$0 id.loc.gov/authorities/names/n2011049161407654',
zeroSubfield: '$0 http://id.loc.gov/authorities/names/n2011049161407654',
seventhBox: '',
};

Expand Down Expand Up @@ -110,7 +110,7 @@ describe('MARC', () => {
JobProfiles.waitLoadingList();
JobProfiles.search(marcFile.jobProfileToRun);
JobProfiles.runImportFile();
JobProfiles.waitFileIsImported(marcFile.fileNameImported);
Logs.waitFileIsImported(marcFile.fileNameImported);
Logs.checkStatusOfJobProfile(JOB_STATUS_NAMES.COMPLETED);
Logs.openFileDetails(marcFile.fileNameImported);
Logs.getCreatedItemsID().then((link) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('MARC', () => {
thirdBox: '\\',
content: '$a C405560 Lentz Local M1',
eSubfield: '',
zeroSubfield: '$0 id.loc.gov/authorities/names/n2011049161405560',
zeroSubfield: '$0 http://id.loc.gov/authorities/names/n2011049161405560',
seventhBox: '',
};

Expand Down Expand Up @@ -87,17 +87,16 @@ describe('MARC', () => {
.then(() => {
cy.resetTenant();
cy.loginAsAdmin().then(() => {
ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.university);
ConsortiumManager.checkCurrentTenantInTopMenu(tenantNames.university);
marcFilesFor.forEach((marcFile) => {
cy.visit(TopMenu.dataImportPath);
ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.university);
DataImport.waitLoading();
ConsortiumManager.checkCurrentTenantInTopMenu(tenantNames.university);
DataImport.verifyUploadState();
DataImport.uploadFile(marcFile.marc, marcFile.fileNameImported);
JobProfiles.waitLoadingList();
JobProfiles.search(marcFile.jobProfileToRun);
JobProfiles.runImportFile();
JobProfiles.waitFileIsImported(marcFile.fileNameImported);
Logs.waitFileIsImported(marcFile.fileNameImported);
Logs.checkStatusOfJobProfile(JOB_STATUS_NAMES.COMPLETED);
Logs.openFileDetails(marcFile.fileNameImported);
Logs.getCreatedItemsID().then((link) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('MARC', () => {
thirdBox: '\\',
content: '$a C405559 Lentz Shared',
eSubfield: '',
zeroSubfield: '$0 id.loc.gov/authorities/names/n2011049161405559',
zeroSubfield: '$0 http://id.loc.gov/authorities/names/n2011049161405559',
seventhBox: '',
};

Expand Down Expand Up @@ -103,7 +103,7 @@ describe('MARC', () => {
JobProfiles.waitLoadingList();
JobProfiles.search(marcFile.jobProfileToRun);
JobProfiles.runImportFile();
JobProfiles.waitFileIsImported(marcFile.fileNameImported);
Logs.waitFileIsImported(marcFile.fileNameImported);
Logs.checkStatusOfJobProfile(JOB_STATUS_NAMES.COMPLETED);
Logs.openFileDetails(marcFile.fileNameImported);
Logs.getCreatedItemsID().then((link) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('MARC', () => {
JobProfiles.waitLoadingList();
JobProfiles.search(marcFile.jobProfileToRun);
JobProfiles.runImportFile();
JobProfiles.waitFileIsImported(marcFile.fileNameImported);
Logs.waitFileIsImported(marcFile.fileNameImported);
Logs.checkStatusOfJobProfile(JOB_STATUS_NAMES.COMPLETED);
Logs.openFileDetails(marcFile.fileNameImported);
Logs.getCreatedItemsID().then((link) => {
Expand Down Expand Up @@ -144,7 +144,7 @@ describe('MARC', () => {
InventoryViewSource.verifyFieldInMARCBibSource(testData.tag245, testData.tag245Content);
InventoryViewSource.verifyFieldInMARCBibSource(testData.tag500, testData.tag500Content);
InventoryViewSource.close();
ConsortiumManager.switchActiveAffiliation(tenantNames.college, tenantNames.university);
ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.university);
InventoryInstances.searchByTitle(createdRecordIDs[0]);
InventoryInstances.selectInstance();
InventoryInstance.checkInstanceTitle(testData.tag245Content);
Expand Down

0 comments on commit d7006b0

Please sign in to comment.