diff --git a/cypress/e2e/consortia/marc/marc-bibliographic/edit-marc-bib/marc-bib-edit-in-central.cy.js b/cypress/e2e/consortia/marc/marc-bibliographic/edit-marc-bib/marc-bib-edit-in-central.cy.js index c31818c543..c465e77cea 100644 --- a/cypress/e2e/consortia/marc/marc-bibliographic/edit-marc-bib/marc-bib-edit-in-central.cy.js +++ b/cypress/e2e/consortia/marc/marc-bibliographic/edit-marc-bib/marc-bib-edit-in-central.cy.js @@ -97,7 +97,7 @@ describe('MARC', () => { QuickMarcEditor.checkPaneheaderContains(testData.sharedPaneheaderText); QuickMarcEditor.updateExistingField(testData.tag245, testData.tag245UpdatedValue); QuickMarcEditor.updateExistingField(testData.tag500, testData.tag500UpdatedValue); - QuickMarcEditor.moveFieldUp(18); + QuickMarcEditor.moveFieldUp(17); QuickMarcEditor.pressSaveAndClose(); QuickMarcEditor.checkAfterSaveAndClose(); InventoryInstance.checkInstanceTitle(testData.updatedTitle); @@ -114,10 +114,7 @@ describe('MARC', () => { InventoryInstances.searchByTitle(createdInstanceID); InventoryInstances.selectInstance(); InventoryInstance.checkInstanceTitle(testData.updatedTitle); - InventoryInstance.verifyLastUpdatedSource( - users.userAProperties.firstName, - users.userAProperties.lastName, - ); + InventoryInstance.verifyLastUpdatedSourceByUnknownUser(); InventoryInstance.viewSource(); InventoryViewSource.verifyFieldInMARCBibSource( testData.tag245, @@ -135,8 +132,8 @@ describe('MARC', () => { users.userAProperties.firstName, users.userAProperties.lastName, ); - QuickMarcEditor.verifyTagValue(17, testData.tag504); - QuickMarcEditor.verifyTagValue(18, testData.tag500); + QuickMarcEditor.verifyTagValue(16, testData.tag504); + QuickMarcEditor.verifyTagValue(17, testData.tag500); }, ); }); diff --git a/cypress/support/fragments/inventory/inventoryInstance.js b/cypress/support/fragments/inventory/inventoryInstance.js index 6c9264b9f3..79ee165b10 100644 --- a/cypress/support/fragments/inventory/inventoryInstance.js +++ b/cypress/support/fragments/inventory/inventoryInstance.js @@ -1618,6 +1618,11 @@ export default { .should('include.text', `${userLastName}, ${userFirsttName}`); }, + verifyLastUpdatedSourceByUnknownUser: () => { + cy.do(Accordion('Administrative data').click()); + cy.get('div[data-test-updated-by="true"]').should('include.text', 'Unknown user'); + }, + verifyRecordCreatedSource: (userFirsttName, userLastName) => { cy.get('div[data-test-created-by="true"]') .find('a')