Skip to content

Commit

Permalink
Adjust the test case C405520 according to the Test rail (#4582)
Browse files Browse the repository at this point in the history
  • Loading branch information
sviatlana-stsiapanava authored Dec 25, 2024
1 parent 3f36a2f commit 2082f0b
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();
cy.wait(1500);
QuickMarcEditor.pressSaveAndClose();
Expand All @@ -119,10 +119,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 @@ -140,8 +137,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 2082f0b

Please sign in to comment.