Skip to content

Commit

Permalink
Merge branch 'ramsons' of https://github.com/folio-org/stripes-testing
Browse files Browse the repository at this point in the history
…into FAT-17784
  • Loading branch information
TetianaParanich committed Dec 25, 2024
2 parents 6808321 + dde7e69 commit bbcbc86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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,
Expand All @@ -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);
},
);
});
Expand Down
5 changes: 5 additions & 0 deletions cypress/support/fragments/inventory/inventoryInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit bbcbc86

Please sign in to comment.