Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed tests #4572

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe('Consortium manager', () => {
cy.login(testData.user400666.username, testData.user400666.password);
ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.college);
cy.visit(SettingsMenu.circulationRequestCancellationReasonsPath);
cy.wait(4000);
cy.wait(4000);
CancellationReason.verifyReasonInTheList({
name: testData.centralSharedReason.payload.name,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ describe('Data Import', () => {
cy.setTenant(Affiliations.College).then(() => {
// use cy.getToken function to get toket for current tenant
TopMenuNavigation.navigateToApp(APPLICATION_NAMES.DATA_EXPORT);
cy.wait(5000);
ExportFile.downloadExportedMarcFileWithRecordHrid(
expectedRecordHrid,
testData.marcFile.exportedFileName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ describe('Data Import', () => {

// download exported marc file
TopMenuNavigation.navigateToApp(APPLICATION_NAMES.DATA_EXPORT);
cy.wait(5000);
ExportFile.downloadExportedMarcFileWithRecordHrid(
expectedRecordHrid,
testData.marcFile.exportedFileName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ describe('Data Import', () => {
// download exported marc file
TopMenuNavigation.navigateToApp(APPLICATION_NAMES.DATA_EXPORT);
ExportFile.waitLandingPageOpened();
cy.wait(5000);
ExportFile.downloadExportedMarcFileWithRecordHrid(
expectedRecordHrid,
testData.marcFile.exportedFileName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ describe('Data Import', () => {
// use cy.getToken function to get toket for current tenant
TopMenuNavigation.navigateToApp(APPLICATION_NAMES.DATA_EXPORT);
ExportFile.waitLandingPageOpened();
cy.wait(5000);
ExportFile.downloadExportedMarcFileWithRecordHrid(
expectedRecordHrid,
testData.marcFile.exportedFileName,
Expand Down Expand Up @@ -227,6 +228,7 @@ describe('Data Import', () => {
InventorySearchAndFilter.verifyPanesExist();
ConsortiumManager.checkCurrentTenantInTopMenu(tenantNames.central);
ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.college);
InventoryInstances.waitContentLoading();
InventoryInstances.searchByTitle(testData.sharedInstanceId);
InventoryInstance.waitInstanceRecordViewOpened(testData.updatedInstanceTitle);
// TO DO: fix this check failure - 'Unknown user' is shown, possibly due to the way users are created in test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ describe('Inventory', () => {

// download exported marc file
cy.getAdminToken();
cy.getAdminToken();
cy.setTenant(Affiliations.College).then(() => {
TopMenuNavigation.openAppFromDropdown(APPLICATION_NAMES.DATA_EXPORT);
ExportFile.waitLandingPageOpened();
cy.wait(5000);
ExportFile.downloadExportedMarcFileWithRecordHrid(
expectedRecordHrid,
testData.exportedFileName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ describe('Data Import', () => {
Permissions.uiOrdersApprovePurchaseOrders.gui,
Permissions.uiInventoryViewCreateEditHoldings.gui,
Permissions.uiInventoryViewCreateEditInstances.gui,
Permissions.uiInventoryViewCreateEditItems,
Permissions.uiInventoryViewCreateEditItems.gui,
Permissions.uiInventoryViewInstances.gui,
Permissions.uiQuickMarcQuickMarcBibliographicEditorView.gui,
]).then((userProperties) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ describe('Data Import', () => {
FileDetails.openInstanceInInventory(RECORD_STATUSES.CREATED);
InventoryInstance.getAssignedHRID().then((initialInstanceHrId) => {
instanceHrid = initialInstanceHrId;
InventorySearchAndFilter.resetAll();
InventorySearchAndFilter.waitLoading();
// check fields are absent in the view source
TopMenuNavigation.navigateToApp(APPLICATION_NAMES.INVENTORY);
InventorySearchAndFilter.searchInstanceByHRID(instanceHrid);
InstanceRecordView.verifyInstancePaneExists();
InventoryInstance.verifyResourceIdentifier(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
Button,
EditableListRow,
MultiColumnListCell,
MultiColumnListRow,
Pane,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export default {
});
}
},


verifyLocalHoldingsNoteTypesInTheList({ name, source = 'local', actions = [] }) {
const row = MultiColumnListRow({ isContainer: true, content: including(name) });
Expand Down
Loading