Skip to content

Commit

Permalink
Spitfire E BF ECS fixes 1-28
Browse files Browse the repository at this point in the history
  • Loading branch information
zentestuken committed Jan 28, 2025
1 parent c9698d8 commit 97668fd
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ describe('Data Import', () => {
path: TopMenu.marcAuthorities,
waiter: MarcAuthorities.waitLoading,
});
cy.reload();
cy.wait('@/authn/refresh', { timeout: 20000 });
MarcAuthorities.waitLoading();
ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.college);
MarcAuthoritiesSearch.searchBy(testData.searchOption, testData.updatedMarcValue);
MarcAuthority.contains(testData.addedField);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ describe('Inventory', () => {
'C422238 Verify that subject from Shared Instance is not displayed in browse result list when "No" is selected in "Shared" facet (current tenant doesn\'t have this local subject, but another tenant has) (consortia) (spitfire)',
{ tags: ['criticalPathECS', 'spitfire', 'C422238'] },
() => {
BrowseSubjects.waitForBrowseSubjectsToContain(testData.sharedInstance.subjects[0].value);
BrowseSubjects.waitForBrowseSubjectsToContain(testData.sharedInstance.subjects[1].value);
InventorySearchAndFilter.switchToBrowseTab();
InventorySearchAndFilter.selectBrowseOption(testData.subjectBrowseoption);
InventorySearchAndFilter.clickAccordionByName(testData.sharedAccordionName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ describe('MARC', () => {
ConsortiumManager.checkCurrentTenantInTopMenu(tenantNames.central);
ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.college);
ConsortiumManager.checkCurrentTenantInTopMenu(tenantNames.college);
cy.intercept('/authn/refresh').as('/authn/refresh');
cy.reload();
cy.wait('@/authn/refresh', { timeout: 20000 });
MarcAuthorities.switchToBrowse();
MarcAuthorities.selectSearchOptionInDropdown(
MARC_AUTHORITY_BROWSE_OPTIONS.PERSONAL_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ describe('MARC', () => {
cy.wait('@/authn/refresh', { timeout: 20000 });
ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.college);
InventoryInstances.waitContentLoading();
InventoryInstances.waitContentLoading();
ConsortiumManager.checkCurrentTenantInTopMenu(tenantNames.college);
});
});
Expand Down Expand Up @@ -209,6 +208,7 @@ describe('MARC', () => {

InventorySearchAndFilter.switchToBrowseTab();
InventorySearchAndFilter.verifyKeywordsAsDefault();
BrowseSubjects.waitForBrowseSubjectsToContain(testData.expectedSubjectName);
BrowseSubjects.select();
BrowseSubjects.browse(testData.expectedSubjectName);
BrowseSubjects.checkValueIsBold(testData.expectedSubjectName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ describe('MARC', () => {
linkingTagAndValues.zeroSubfield,
linkingTagAndValues.seventhBox,
);
QuickMarcEditor.clickSaveAndKeepEditing();
QuickMarcEditor.clickSaveAndKeepEditingButton();
cy.wait(1500);
QuickMarcEditor.clickSaveAndKeepEditing();
QuickMarcEditor.openLinkingAuthorityByIndex(16);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ describe('MARC', () => {
testData.contributor,
`${testData.linkAuthorityIcon}\n${linkingTagAndValues.authorityHeading}`,
);

cy.reload();
cy.wait('@/authn/refresh', { timeout: 20000 });
InventoryInstance.checkPresentedText(testData.updatedInstanceTitle);
ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.college);
InventoryInstances.waitContentLoading();
ConsortiumManager.checkCurrentTenantInTopMenu(tenantNames.college);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ describe('MARC', () => {
})
.then(() => {
cy.setTenant(Affiliations.University);
cy.wait(10000);
cy.assignPermissionsToExistingUser(users.userProperties.userId, [
Permissions.inventoryAll.gui,
Permissions.uiMarcAuthoritiesAuthorityRecordView.gui,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ describe('MARC', () => {
'C404417 Searching/browsing for "MARC Authority" records in "MARC Authority" plug-in on Central tenant (consortia) (spitfire)',
{ tags: ['criticalPathECS', 'spitfire', 'C404417'] },
() => {
cy.reload();
cy.wait('@/authn/refresh', { timeout: 20000 });
InventoryInstance.verifyInstanceTitle(marcFiles[0].title);
// 1 Click "Actions" button in the third pane → Select "Edit MARC bibliographic record" option.
InventoryInstance.editMarcBibliographicRecord();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ describe('MARC', () => {
ManageAuthorityFiles.checkNewButtonShown(false);
ManageAuthorityFiles.checkManageAuthorityFilesPaneExists();
ManageAuthorityFiles.checkAuthorityFilesTableNotEditable();
cy.logout();
});
},
);
Expand All @@ -113,6 +114,7 @@ describe('MARC', () => {

ConsortiumManager.switchActiveAffiliation(tenantNames.college, tenantNames.central);
ConsortiumManagerApp.verifyChooseSettingsIsDisplayed();
cy.logout();
},
);
});
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/api/tenant.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Cypress.Commands.add('updateConfigForTenantById', (configId, body) => {

Cypress.Commands.add('getApplicationsForTenantApi', (tenantName, idOnly = true) => {
cy.okapiRequest({
path: `entitlements/${tenantName}/applications`,
path: `entitlements/${tenantName}/applications?limit=50`,
isDefaultSearchParamsRequired: false,
}).then((response) => {
if (idOnly) return response.body.applicationDescriptors.map((descriptor) => descriptor.id);
Expand Down

0 comments on commit 97668fd

Please sign in to comment.