Skip to content

Commit

Permalink
Merge branch 'eureka-test-rbugfest' of https://github.com/folio-org/s…
Browse files Browse the repository at this point in the history
…tripes-testing into FAT-18179
  • Loading branch information
TetianaParanich committed Jan 23, 2025
2 parents 4af528f + 553b787 commit 9241bac
Show file tree
Hide file tree
Showing 48 changed files with 618 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ describe('bulk-edit', () => {
);
});

it(
// Test case Not applicable for eureka
it.skip(
'C380562 Verify generated Logs files for Users CSV are hidden without "Users: Can view user profile" permission (firebird)',
{ tags: ['criticalPath', 'firebird', 'C380562'] },
() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ describe('bulk-edit', () => {
FileManager.deleteFileFromDownloadsByMask(matchedRecordsFileName);
});

it(
// Test case Not applicable for eureka
it.skip(
'C353978 Verify that user can view data in Export Manager based on permissions (Negative) (firebird)',
{ tags: ['criticalPath', 'firebird', 'C353978'] },
() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ describe('bulk-edit', () => {
Users.deleteViaApi(user.userId);
});

it(
// Test case Not applicable for eureka
it.skip(
'C413373 Verify Query tab permissions (In app holdings) (firebird)',
{ tags: ['extendedPath', 'firebird', 'C413373'] },
() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ describe('bulk-edit', () => {
Users.deleteViaApi(user.userId);
});

it(
// Test case Not applicable for eureka
it.skip(
'C376991 Verify Query tab permissions (In app items) (firebird)',
{ tags: ['criticalPath', 'firebird', 'C376991'] },
() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import { APPLICATION_NAMES } from '../../../support/constants';
let firstUser;
let secondUser;

describe('bulk-edit', () => {
// Test cases Not applicable for eureka
describe.skip('bulk-edit', () => {
describe('permissions', () => {
before('create test data', () => {
cy.createTempUser([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
APPLICATION_NAMES,
BULK_EDIT_TABLE_COLUMN_HEADERS,
ITEM_STATUS_NAMES,
LOAN_TYPE_NAMES,
} from '../../../../support/constants';
import TopMenuNavigation from '../../../../support/fragments/topMenuNavigation';

Expand Down Expand Up @@ -75,7 +76,7 @@ describe('Bulk-edit', () => {
cy.getLocations({ query: 'name="DCB"' }).then((res) => {
locationId = res.id;
});
cy.getLoanTypes({ limit: 1 }).then((res) => {
cy.getLoanTypes({ query: `name="${LOAN_TYPE_NAMES.CAN_CIRCULATE}"` }).then((res) => {
loanTypeId = res[0].id;
});
cy.getMaterialTypes({ limit: 1 }).then((res) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
APPLICATION_NAMES,
BULK_EDIT_TABLE_COLUMN_HEADERS,
ITEM_STATUS_NAMES,
LOAN_TYPE_NAMES,
} from '../../../../support/constants';
import TopMenuNavigation from '../../../../support/fragments/topMenuNavigation';

Expand Down Expand Up @@ -95,7 +96,7 @@ describe('Bulk-edit', () => {
cy.getLocations({ query: 'name="DCB"' }).then((res) => {
locationId = res.id;
});
cy.getLoanTypes({ limit: 1 }).then((res) => {
cy.getLoanTypes({ query: `name="${LOAN_TYPE_NAMES.CAN_CIRCULATE}"` }).then((res) => {
loanTypeId = res[0].id;
});
cy.getMaterialTypes({ limit: 1 }).then((res) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
APPLICATION_NAMES,
BULK_EDIT_TABLE_COLUMN_HEADERS,
ITEM_STATUS_NAMES,
LOAN_TYPE_NAMES,
} from '../../../../support/constants';
import TopMenuNavigation from '../../../../support/fragments/topMenuNavigation';

Expand Down Expand Up @@ -104,7 +105,7 @@ describe('Bulk-edit', () => {
cy.getLocations({ query: 'name="DCB"' }).then((res) => {
locationId = res.id;
});
cy.getLoanTypes({ limit: 1 }).then((res) => {
cy.getLoanTypes({ query: `name="${LOAN_TYPE_NAMES.CAN_CIRCULATE}"` }).then((res) => {
loanTypeId = res[0].id;
});
cy.getMaterialTypes({ limit: 1 }).then((res) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
APPLICATION_NAMES,
BULK_EDIT_TABLE_COLUMN_HEADERS,
ITEM_STATUS_NAMES,
LOAN_TYPE_NAMES,
} from '../../../../support/constants';
import TopMenuNavigation from '../../../../support/fragments/topMenuNavigation';

Expand Down Expand Up @@ -105,7 +106,7 @@ describe('Bulk-edit', () => {
cy.getLocations({ query: 'name="DCB"' }).then((res) => {
locationId = res.id;
});
cy.getLoanTypes({ limit: 1 }).then((res) => {
cy.getLoanTypes({ query: `name="${LOAN_TYPE_NAMES.CAN_CIRCULATE}"` }).then((res) => {
loanTypeId = res[0].id;
});
cy.getMaterialTypes({ limit: 1 }).then((res) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
BULK_EDIT_TABLE_COLUMN_HEADERS,
ITEM_STATUS_NAMES,
ITEM_NOTE_TYPES,
LOAN_TYPE_NAMES,
} from '../../../../support/constants';
import TopMenuNavigation from '../../../../support/fragments/topMenuNavigation';

Expand Down Expand Up @@ -110,7 +111,7 @@ describe('Bulk-edit', () => {
cy.getLocations({ query: 'name="DCB"' }).then((res) => {
locationId = res.id;
});
cy.getLoanTypes({ limit: 1 }).then((res) => {
cy.getLoanTypes({ query: `name="${LOAN_TYPE_NAMES.CAN_CIRCULATE}"` }).then((res) => {
loanTypeId = res[0].id;
});
cy.getMaterialTypes({ limit: 1 }).then((res) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
BULK_EDIT_TABLE_COLUMN_HEADERS,
ITEM_STATUS_NAMES,
ITEM_NOTE_TYPES,
LOAN_TYPE_NAMES,
} from '../../../../support/constants';
import TopMenuNavigation from '../../../../support/fragments/topMenuNavigation';

Expand Down Expand Up @@ -104,7 +105,7 @@ describe('Bulk-edit', () => {
cy.getLocations({ query: 'name="DCB"' }).then((res) => {
locationId = res.id;
});
cy.getLoanTypes({ limit: 1 }).then((res) => {
cy.getLoanTypes({ query: `name="${LOAN_TYPE_NAMES.CAN_CIRCULATE}"` }).then((res) => {
loanTypeId = res[0].id;
});
cy.getMaterialTypes({ limit: 1 }).then((res) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import moment from 'moment';
import { calloutTypes } from '../../../../../../interactors';
import { getTestEntityValue } from '../../../../../support/utils/stringTools';
import ConsortiumManagerApp, {
Expand Down Expand Up @@ -120,12 +119,6 @@ describe('Consortia', () => {
name: alternativeTitleTypes4.name,
});
ConsortiaControlledVocabularyPaneset.clickSave();
const rowDataToCheck = [
alternativeTitleTypes4.name,
'consortium',
moment().format('l'),
'All',
];

ConfirmShare.waitLoadingConfirmShareToAll(alternativeTitleTypes4.name);
ConfirmShare.clickConfirm();
Expand All @@ -135,10 +128,10 @@ describe('Consortia', () => {
messages.noPermission(tenantNames.college),
calloutTypes.error,
);
ConsortiaControlledVocabularyPaneset.verifyRecordInTheList(alternativeTitleTypes4.name, [
'edit',
'trash',
]);
ConsortiaControlledVocabularyPaneset.verifyRecordInTheList(
alternativeTitleTypes4.name,
['edit', 'trash'],
);

ConsortiaControlledVocabularyPaneset.createViaUi(true, alternativeTitleTypes5);
ConsortiaControlledVocabularyPaneset.clickSave();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import moment from 'moment';
import { calloutTypes } from '../../../../../../interactors';
import { getTestEntityValue } from '../../../../../support/utils/stringTools';
import ConsortiumManagerApp, {
Expand Down Expand Up @@ -123,12 +122,6 @@ describe('Consortia', () => {
name: classificationType4.name,
});
ConsortiaControlledVocabularyPaneset.clickSave();
const createdCIT = [
classificationType4.name,
'consortium',
moment().format('l'),
'All',
];

ConfirmShare.waitLoadingConfirmShareToAll(classificationType4.name);
ConfirmShare.clickConfirm();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import moment from 'moment';
import { calloutTypes } from '../../../../../../interactors';
import { getTestEntityValue } from '../../../../../support/utils/stringTools';
import ConsortiumManagerApp, {
Expand Down Expand Up @@ -115,7 +114,6 @@ describe('Consortia', () => {
name: instanceNote4.name,
});
ConsortiaControlledVocabularyPaneset.clickSave();
const createdCIT = [instanceNote4.name, 'consortium', moment().format('l'), 'All'];

ConfirmShare.waitLoadingConfirmShareToAll(instanceNote4.name);
ConfirmShare.clickConfirm();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import moment from 'moment';
import { calloutTypes } from '../../../../../../interactors';
import { getTestEntityValue } from '../../../../../support/utils/stringTools';
import ConsortiumManagerApp, {
Expand Down Expand Up @@ -115,7 +114,6 @@ describe('Consortia', () => {
name: modesIssuance4.name,
});
ConsortiaControlledVocabularyPaneset.clickSave();
const createdCIT = [modesIssuance4.name, 'consortium', moment().format('l'), 'All'];

ConfirmShare.waitLoadingConfirmShareToAll(modesIssuance4.name);
ConfirmShare.clickConfirm();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ describe('Data Export', () => {
Users.deleteViaApi(user.userId);
});

it(
// Test case Not applicable for eureka
it.skip(
'C389473 Verify that "Settings (Data export): Can view only" permission is searchable and renamed (firebird) (Taas)',
{ tags: ['firebird', 'extendedPath', 'C389473'] },
() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ describe('Data Import', () => {
.then(() => {
TopMenuNavigation.openAppFromDropdown(APPLICATION_NAMES.INVENTORY);
InventoryInstances.searchByTitle(createdAuthorityIDs[0]);
InventoryInstances.selectInstance();
InventoryInstances.selectInstanceById(createdAuthorityIDs[0]);
InventoryInstance.editMarcBibliographicRecord();
linkingTagAndValues.forEach((linking) => {
QuickMarcEditor.clickLinkIconInTagField(linking.rowIndex);
Expand Down Expand Up @@ -245,7 +245,7 @@ describe('Data Import', () => {
{ tags: ['extendedPath', 'spitfire', 'C374189'] },
() => {
InventoryInstances.searchByTitle(createdAuthorityIDs[0]);
InventoryInstances.selectInstance();
InventoryInstances.selectInstanceById(createdAuthorityIDs[0]);
// download .csv file
InventorySearchAndFilter.saveUUIDs();
ExportFile.downloadCSVFile(nameForCSVFile, 'SearchInstanceUUIDs*');
Expand Down Expand Up @@ -278,8 +278,8 @@ describe('Data Import', () => {
Logs.verifyInstanceStatus(0, 3, RECORD_STATUSES.UPDATED);

TopMenuNavigation.navigateToApp(APPLICATION_NAMES.INVENTORY);
InventoryInstances.searchByTitle(testData.instanceTitle);
InventoryInstances.selectInstance();
InventoryInstances.searchByTitle(createdAuthorityIDs[0]);
InventoryInstances.selectInstanceById(createdAuthorityIDs[0]);
InventoryInstance.checkAbsenceOfAuthorityIconInInstanceDetailPane('Contributor');
InventoryInstance.editMarcBibliographicRecord();
QuickMarcEditor.verifyTagFieldAfterUnlinking(...testData.updated110Field);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ describe('eHoldings', () => {
before('Creating usera and creating data', () => {
cy.createTempUser([
Permissions.uiAgreementsAgreementsEdit.gui,
Permissions.uiAgreementsSearchAndView,
Permissions.uiAgreementsSearchAndView.gui,
Permissions.uieHoldingsRecordsEdit.gui,
Permissions.uiAgreementsSearch,
Permissions.uiAgreementsSearch.gui,
])
.then((createdUserProperties) => {
testData.userProperties = createdUserProperties;
Expand Down
Loading

0 comments on commit 9241bac

Please sign in to comment.