Skip to content

Commit

Permalink
Implement FAT-10234 (#3319)
Browse files Browse the repository at this point in the history
* Prepare framework for consortia

* Prepare framework for consortia

* Prepare framework for consortia

* Prepare framework for consortia

* Implementing of FAT-9484 (#2211)

* Implementing of FAT-9484

* Implementing of FAT-9484

* first implementation

* add permissions to another affiliate

* reset configs

* FAT-9550-C405520-consortia (#2432)

* FAT-9550: preconditions added

* FAT-9550: steps added

* FAT-9621/C405547 (#2540)

* added test C405547

* small addition

* linter fix

* Implementing of FAT-9489 (#2587)

* Implementing of FAT-9485 (#2719)

* Implementing of FAT-9485

* Implementing of FAT-9485

* Implementing of FAT-9485

* add methods

* Implementing of FAT-9485

* Implementing of FAT-9485

---------

Co-authored-by: kirstaVova <grouplbua@gmail.com>

* FAT-9600-C397343 (#2729)

* FAT-9600: preconditions added

* FAT-9600: steps added

* FAT-9660: steps added

* tenant name updated

* Implementing of FAT-9488

* FAT-10165: test added (#2795)

* FAT-9622/C422124-Consortia (#2801)

* added test C422124

* linter fix

* C407751 (#2820)

* FAT-9761-C407746 (#2738)

* added test

* fixed test

* added test C422141 (#2872)

* C418647 (#2878)

* added test C405507 (#2906)

* FAT-10216-C405531 (#2939)

* added test

* added checks

* fixed test

* FAT-9763-C407749 (#2846)

* added test

* fixed test

* FAT-10432-C402767-Consortia (#2954)

* FAT-10096: Preconditions added

* FAT-10432: steps added

* added test C407654 (#2956)

* Implementing of FAT-10199 (#2979)

* Implementing of FAT-9488 (#2985)

* implement 9488

* Implementing of FAT-9488

* FAT-10468/C414981-Consortia (#2997)

* added test C414981

* linter fix

* added test C414980 (#3015)

* FAT-11144-C422238-Consortia (#3049)

* FAT-11144: precondition added

* FAT-11144: preconditions updated

* comments added

* FAT-11144: steps added

* sharp version override

* sharp for eslint version override

* C405119: Imported "MARC authority" record from Central tenant is discoverable in Central and Member tenants (#3065)

* Add test case C405119

* Add methods

* Move cy.allure().endStep() for correct display in the Allure report

* Fat 10214 (#3053)

* FAT-10214 new test added

* prettier and lint checks

* updated tags

* added test C405559 (#3074)

* fixed patron group

* FAT-10497-C405142-Consortia (#3072)

* FAT-10497: precondition, steps added

* FAT-10497: steps added

* C404390 (#3077)

* C404390

* FAT-10201/C405560-Consortia (#3076)

* added test C405560

* linter

* C405519: Imported "MARC authority" record from Member tenant is not discoverable in Central tenant (#3073)

* Add test case C405519

* Adjust test cases

* Adjust a test case

* Implementing of FAT-10862 (#3079)

* FAT-10096-C402769-Consortia (#3078)

* FAT-10096: Preconditions added

* FAT-10096: steps added

* FAT-10096: test added, folders rearranged

* FAT-10096: token reset added

* Implementation of FAT-10196 (#3052)

* Implementation of FAT-10196

* Implementation of FAT-10196

* add all settings permissions

* Fix testcases names

* FAT-10217-C405532 (#3022)

* added test

* fixed test

* changed set tenant

* renamed tenants

* fix exportFile function

* fix for import

* fixed test

* changed comment

* fixed userEdit fragment

---------

Co-authored-by: Ostap_Voitsekhovskyi <ostap_voitsekhovskyi@epam.com>

* FAT-10215-C405528 (#3021)

* added test

* uncommented code

* changed function

* Merge branch 'consortium_permissions' of https://github.com/folio-org/stripes-testing into FAT-10217-C405532

* C404400 (#3080)

* Fat 10345 fat 10347 fat 10349 fat 10351 (#3082)

 FAT-10345 FAT-10347 FAT-10349 FAT-10351

* Fat 10346 fat 10348 fat 10350 fat 10352 (#3084)

 FAT-10346 FAT-10348 FAT-10350 FAT-10352

* added test C410814 (#3083)

* FAT-10218-C405534 (#3023)

* added test

* fixed test

* Implement FAT-10863 (#3088)

* Implement FAT-10862

* C411683

* FAT-10219-C411726 (#3087)

* added test

* moved folders

* created instance

* added after block

* Fat 10437 (#3089)

* FAT-10205/C397335 (#3090)

* added C397335

* Implement of FAT-10864 (#3092)

* Implement of FAT-10864

* Implement of FAT-10864

* FAT-10434: test added (#3091)

* added test C410819 (#3097)

* added test C405549 (#3103)

* test fixes (#3106)

* ECS tests fixes (#3107)

* FAT-10276-C402335 (#3101)

* added test

* changed describe

* fixed

* FAT-10277-C402376 (#3102)

* added test

* changed decribes

* FAT-10281-C402763 (#3110)

* added test

* fixed test

* FAT-10278-C402760 (#3104)

* added test

* fixed

* changed tags

* changed its

* fixed after block

* fixed test

* added test (#3109)

* FAT-10279-C402761 (#3108)

* added test

* fixed test

* FAT-10284-C409516 (#3117)

* added test

* added holdings

* added after block

* uncommented code

* added test (#3118)

* FAT-10498-C405513-ECS (#3120)

* FAT-10498: preconditions added

* FAT-10498: steps added

* FAT-10498: test finished

* updated arguments for switch method

* Implementing of FAT-10866 (#3121)

* Implementing of FAT-10866

* C411742

* C410834 (#3122)

* FAT-10439 (#3131)

* FAT-10427/C402334-Consortia (#3130)

* added test C402334

* linter fix

* FAT-10481: test added (#3134)

* added test C407696 (#3143)

* added test C411802 (#3144)

* Fat 10440 (#3145)

* Implement FAT-10226 (#3142)

* C405522: Imported "MARC authority" record from Member 1 tenant is not discoverable in Member 2 tenant (consortia) (#3146)

* Add a test case

* Add the argument to the method

* Adjust test case

* FAT-10543-C402777 (#3148)

* FAT-10543: preconditions added

* FAT-10543: steps added

* FAT-10273-C411794 (#3149)

* added test

* added checks

* C404421: Apply "Shared" facet to the search result list in "Member" tenant when search was executed (consortia) (#3154)

* Add a test case

* Refactor the test case

* Replace method

* Implementing of FAT-10876 (#3155)

* esc test fixes (#3156)

* FAT-10488/C405927 (#3157)

* added test C405927

* linter fix

* linter fix

* linter fix

* FAT-10501-C405537 (#3159)

* FAT-10501: preconditions added

* FAT-10501: test added

* FAT-10501: commented steps due to a bug

* C407754 (#3160)

* FAT-10283 FAT-11369 FAT-10213 (#3158)

* FAT-10283 FAT-11369 FAT-10213

* added test C407633 (#3161)

* ecs test fixes (#3163)

* Implement FAT-10231 (#3162)

* Implement FAT-10231

* add all fragments

* move to const

* fix issues

* fixed C411384 (#3164)

* FAT-10288-C418582 (#3167)

* added test

* fixed test

* FAT-10502-C405544 (#3170)

* FAT-10502: preconditions added

* FAT-10502: steps added

* FAT-10475/C410818-Consortia (#3173)

* added test C410818

* rename file

* FAT-11857 fix for pipelines

* FAT-10425/C400663-Consortia (#3175)

* added test C400663

* linter

* small fix

* FAT-10289-C418583 (#3168)

* added test

* fixed test

* FAT-10271-C411791 (#3099)

* added test

* added file

* fix test

* FAT-10454-C404353 (#3181)

* FAT-10454: preconditions added

* FAT-10454: preconditions updated

* FAT-10454: preconditions updated

* FAT-10454: preconditions updated

* FAT-10454: steps added

* FAT-10454: removed eslint comment

* FAT-10879/C410841 (#3182)

* added C410841

* Add test case (#3186)

* FAT-10479/C410739 (#3187)

* added test C410739

* linter fix

* FAT-10455: test added (#3189)

* added test C410744 (#3199)

* C402330 Use "Shared" facet when Search was not executed in "Member" tenant ("Instance" tab) (consortia) (#3201)

* Add a test case

* Refactor checkSharedAndLocalInstancesInResultList

* FAT-11956-C422237 (#3200)

* FAT-11956: test added

* FAT-11956: name updated

* dependency fix

* C410855 (#3202)

* FAT-10314

* added test for FAT-11380 (#3203)

* FAT-10318 (#3204)

* C404449 Apply "Shared" facet to the browse result list in "Member" tenant (consortia) (#3205)

* Fix test cases

* Add a test case

* Add a test case

* Fat 10317 fat 10315 (#3207)

* FAT-10318

* FAT-10315 FAT-10317

* C410856 (#3209)

* Implement FAT-10232 (#3206)

* Implement FAT-10232

* Implement FAT-10232

* FAT-10290-C418586 (#3214)

* added test

* fixed test

* fixed test

* deleted waiters

* FAT-10316 FAT-10319 (#3216)

* FAT-11950-C410759 (#3212)

FAT-11950

* Implement FAT-10233 (#3218)

* added test C410775 (#3219)

* added test (#3223)

* added test C410715 (#3227)

* C404417 Searching/browsing for "MARC Authority" records in "MARC Authority" plug-in on Central tenant (consortia) (#3232)

* FAT-10444 (#3233)

* FAT-10472/C411611 (#3234)

* added test C411611

* linter fix

* small fix

* FAT-11951-C410763 (#3228)

* FAT-11951: preconditions added

* FAT-11951: steps added

* C410885 (#3239)

* C410885

* Refactoring ECS autotests that interact with "consortia-controlled-vocabulary-paneset" (#3242)

* added ConsortiaControlledVocabularyPaneset

* FAT-11063 (#3247)

* FAT-11008/C410900 (#3249)

* added C410900

* FAT-11009/C410901 (#3250)

* added C410901

* FAT-11011/C410902 (#3252)

* added C410902

* FAT-10473/C411578 (#3248)

* added test C411578

* small change

* move data import to API

* linter fix

* C410886 (#3266)

* C410888 (#3267)

* added test (#3224)

* FAT-10878/C407740 (#3278)

* added C407740

* C410909 (#3268)

* fixed bug (#3280)

* C410702 "Title look-up" plugin in "Requests" app: Use "Shared" facet in "Member" tenant (#3277)

* Add first part of the test case

* Add the test case

* Add a random postfix to FOLIO instances

* Implement FAT-10235 (#3262)

* Implement FAT-10235

* Implement FAT-10235

* FAT-11064 (#3276)

* FAT-11064

* Fat 11065 (#3282)

* FAT-11065

* FAT-11994/C405144-Consortia (#3281)

* added test C405144

* deleted unused code

* added test (#3274)

* added test (#3275)

* FAT-11067 (#3285)

* Fat 10236 (#3279)

* Implement FAT-10235

* Implement FAT-10235

* Implement FAT-10236

* Add folders

* Fixes

* FAT-11069 (#3293)

* FAT-11069

* C410910 (#3301)

* C410939 (#3306)

* FAT-12016/C423572-Consortia (#3299)

* added test C423572

* added test steps

* small change

* small fix

* small fix

* small update

* update

* linter fix

* linter fix

* added C410931 (#3309)

* FAT-10885/C410875 (#3313)

* added C410875

* added C410932 (#3310)

* added C410933 (#3311)

* FAT-10299-C423392 (#3305)

* added test

* fixed test

* added token

* Implement FAT-10234

* Fix post's methods

* C400671

---------

Co-authored-by: Ostap_Voitsekhovskyi <ostap_voitsekhovskyi@epam.com>
Co-authored-by: Yauhen Viazau <Yauhen_Viazau@epam.com>
Co-authored-by: Sherzod-Kenjaev <114989418+Sherzod-Kenjaev@users.noreply.github.com>
Co-authored-by: kirstaVova <grouplbua@gmail.com>
Co-authored-by: nayimovag <guliyashnar_nayimova@epam.com>
Co-authored-by: Tetiana Paranich <89065577+TetianaParanich@users.noreply.github.com>
Co-authored-by: Sviatlana Stsiapanava <152482600+sviatlana-stsiapanava@users.noreply.github.com>
Co-authored-by: Jasurbek Erkinov <99860864+re-jas@users.noreply.github.com>
  • Loading branch information
9 people committed Mar 13, 2024
1 parent 8a3ceba commit d220782
Show file tree
Hide file tree
Showing 21 changed files with 1,651 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ module.exports = defineConfig({
pageLoadTimeout: 60000,
downloadsFolder: 'cypress/downloads',
env: {
OKAPI_HOST: 'https://folio-testing-cypress-okapi.ci.folio.org',
OKAPI_TENANT: 'diku',
diku_login: 'diku_admin',
OKAPI_HOST: 'https://folio-testing-sprint-okapi.ci.folio.org',
OKAPI_TENANT: 'cs00000int',
diku_login: 'ECSAdmin',
diku_password: 'admin',
is_kiwi_release: false,
downloadTimeout: 2000,
Expand Down Expand Up @@ -113,7 +113,7 @@ module.exports = defineConfig({

return result;
},
baseUrl: 'https://folio-testing-cypress-diku.ci.folio.org',
baseUrl: 'https://folio-testing-sprint-cs00000int.ci.folio.org',
testIsolation: false,
},
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,277 @@
import uuid from 'uuid';
import permissions from '../../../support/dictionary/permissions';
import Users from '../../../support/fragments/users/users';
import { getTestEntityValue } from '../../../support/utils/stringTools';
import Affiliations, { tenantNames } from '../../../support/dictionary/affiliations';
import ConsortiumManager from '../../../support/fragments/settings/consortium-manager/consortium-manager';
import SettingsMenu from '../../../support/fragments/settingsMenu';
import ContributorTypesConsortiumManager from '../../../support/fragments/consortium-manager/inventory/instances/contributorTypesConsortiumManager';
import AlternativeTitleTypesConsortiumManager from '../../../support/fragments/consortium-manager/inventory/instances/alternativeTitleTypesConsortiumManager';
import ClassificationIdentifierTypesConsortiumManager from '../../../support/fragments/consortium-manager/inventory/instances/classificationIdentifierTypesConsortiumManager';
import FormatsConsortiumManager from '../../../support/fragments/consortium-manager/inventory/instances/formatsConsortiumManager';
import InstanceNoteTypesConsortiumManager from '../../../support/fragments/consortium-manager/inventory/instances/instanceNoteTypesConsortiumManager';
import AlternativeTitleTypes from '../../../support/fragments/settings/inventory/instances/alternativeTitleTypes';
import ClassificationIdentifierTypes from '../../../support/fragments/settings/inventory/instances/classificationIdentifierTypes';
import ContributorTypes from '../../../support/fragments/settings/inventory/instances/contributorTypes';
import Formats from '../../../support/fragments/settings/inventory/instances/formats';
import InstanceNoteTypes from '../../../support/fragments/settings/inventory/instances/instanceNoteTypes';
import InstanceStatusTypeConsortiumManager from '../../../support/fragments/consortium-manager/inventory/instances/instanceStatusTypeConsortiumManager';
import ModesOfIssuanceConsortiumManager from '../../../support/fragments/consortium-manager/inventory/instances/modesOfIssuanceConsortiumManager';
import NatureOfContentConsortiumManager from '../../../support/fragments/consortium-manager/inventory/instances/natureOfContentConsortiumManager';
import ResourceIdentifierTypesConsortiumManager from '../../../support/fragments/consortium-manager/inventory/instances/resourceIdentifierTypesConsortiumManager';
import ResourceTypesConsortiumManager from '../../../support/fragments/consortium-manager/inventory/instances/resourceTypesConsortiumManager';
import InstanceStatusTypes from '../../../support/fragments/settings/inventory/instances/instanceStatusTypes/instanceStatusTypes';
import ModesOfIssuance from '../../../support/fragments/settings/inventory/instances/modesOfIssuance';
import NatureOfContent from '../../../support/fragments/settings/inventory/instances/natureOfContent';
import ResourceIdentifierTypes from '../../../support/fragments/settings/inventory/instances/resourceIdentifierTypes';
import ResourceTypes from '../../../support/fragments/settings/inventory/instances/resourceTypes';

const testData = {
centralSharedContributorTypes: {
payload: {
name: getTestEntityValue('centralSharedContributorTypes_name'),
code: getTestEntityValue('code'),
},
},
centralSharedAlternativeTitleTypes: {
payload: {
name: getTestEntityValue('centralSharedAlternativeTitleTypes_name'),
},
},
centralSharedClassificationIdentifierTypes: {
payload: {
name: getTestEntityValue('centralSharedClassificationIdentifierTypes_name'),
},
},
centralSharedFormats: {
payload: {
name: getTestEntityValue('centralSharedFormats_name'),
code: getTestEntityValue('code'),
},
},
centralSharedInstanceNoteTypes: {
payload: {
name: getTestEntityValue('centralSharedInstanceNoteTypes_name'),
},
},
collegeLocalInstanceNoteTypes: {
id: uuid(),
name: getTestEntityValue('collegeLocalInstanceNoteTypes_name'),
source: 'local',
},
centralSharedInstanceStatusTypes: {
payload: {
name: getTestEntityValue('centralSharedInstanceStatusTypes_name'),
code: getTestEntityValue('code'),
},
},
universityLocalInstanceStatusTypes: {
id: uuid(),
name: getTestEntityValue('universityLocalInstanceStatusTypes_name'),
code: getTestEntityValue('code'),
source: 'local',
},
centralSharedResourceTypes: {
payload: {
name: getTestEntityValue('centralSharedResourceTypes_name'),
code: getTestEntityValue('code'),
},
},
centralSharedModesOfIssuance: {
payload: {
name: getTestEntityValue('centralSharedModesOfIssuance_name'),
},
},
centralSharedNatureOfContent: {
payload: {
name: getTestEntityValue('centralSharedNatureOfContent_name'),
},
},
centralSharedResourceIdentifierTypes: {
payload: {
name: getTestEntityValue('centralSharedResourceIdentifierTypes_name'),
},
},
};

describe('Consortium manager', () => {
describe('View settings', () => {
describe('View Inventory', () => {
before('create test data', () => {
cy.getAdminToken();
ContributorTypesConsortiumManager.createViaApi(testData.centralSharedContributorTypes).then(
(newContributorTypes) => {
testData.centralSharedContributorTypes = newContributorTypes;
},
);
ClassificationIdentifierTypesConsortiumManager.createViaApi(
testData.centralSharedClassificationIdentifierTypes,
).then((newClassificationIdentifierTypes) => {
testData.centralSharedClassificationIdentifierTypes = newClassificationIdentifierTypes;
});
AlternativeTitleTypesConsortiumManager.createViaApi(
testData.centralSharedAlternativeTitleTypes,
).then((newAlternativeTitleTypes) => {
testData.centralSharedAlternativeTitleTypes = newAlternativeTitleTypes;
});
FormatsConsortiumManager.createViaApi(testData.centralSharedFormats).then((newHFormats) => {
testData.centralSharedFormats = newHFormats;
});
InstanceNoteTypesConsortiumManager.createViaApi(
testData.centralSharedInstanceNoteTypes,
).then((newInstanceNoteTypes) => {
testData.centralSharedInstanceNoteTypes = newInstanceNoteTypes;
});
InstanceStatusTypeConsortiumManager.createViaApi(
testData.centralSharedInstanceStatusTypes,
).then((newInstanceStatusTypes) => {
testData.centralSharedInstanceStatusTypes = newInstanceStatusTypes;
});
ModesOfIssuanceConsortiumManager.createViaApi(testData.centralSharedModesOfIssuance).then(
(newModesOfIssuance) => {
testData.centralSharedModesOfIssuance = newModesOfIssuance;
},
);
NatureOfContentConsortiumManager.createViaApi(testData.centralSharedNatureOfContent).then(
(newNatureOfContent) => {
testData.centralSharedNatureOfContent = newNatureOfContent;
},
);
ResourceIdentifierTypesConsortiumManager.createViaApi(
testData.centralSharedResourceIdentifierTypes,
).then((newResourceIdentifierTypes) => {
testData.centralSharedResourceIdentifierTypes = newResourceIdentifierTypes;
});
ResourceTypesConsortiumManager.createViaApi(testData.centralSharedResourceTypes).then(
(newResourceTypes) => {
testData.centralSharedResourceTypes = newResourceTypes;
},
);
cy.createTempUser([]).then((userProperties) => {
// User for test C400671
testData.user400671 = userProperties;

cy.resetTenant();
cy.getAdminToken();
cy.assignAffiliationToUser(Affiliations.College, testData.user400671.userId);
cy.setTenant(Affiliations.College);
cy.assignPermissionsToExistingUser(testData.user400671.userId, [
permissions.crudAlternativeTitleTypes.gui,
permissions.crudClassificationIdentifierTypes.gui,
permissions.crudInstanceNoteTypes.gui,
permissions.crudContributorTypes.gui,
permissions.crudFormats.gui,
]);
InstanceNoteTypes.createViaApi(testData.collegeLocalInstanceNoteTypes);

cy.resetTenant();
cy.getAdminToken();
cy.assignAffiliationToUser(Affiliations.University, testData.user400671.userId);
cy.setTenant(Affiliations.University);
cy.assignPermissionsToExistingUser(testData.user400671.userId, [
permissions.uiSettingsInstanceStatusesCreateEditDelete.gui,
permissions.uiSettingsModesOfIssuanceCreateEditDelete.gui,
permissions.crudDefinedResourceTypes.gui,
permissions.crudNatureOfContent.gui,
permissions.crudResourceIdentifierTypes.gui,
]);
InstanceStatusTypes.createViaApi(testData.universityLocalInstanceStatusTypes);
cy.resetTenant();
cy.login(testData.user400671.username, testData.user400671.password);
});
});

after('delete test data', () => {
cy.resetTenant();
cy.setTenant(Affiliations.Consortia);
cy.getAdminToken();
ContributorTypesConsortiumManager.deleteViaApi(testData.centralSharedContributorTypes);
ClassificationIdentifierTypesConsortiumManager.deleteViaApi(
testData.centralSharedClassificationIdentifierTypes,
);
AlternativeTitleTypesConsortiumManager.deleteViaApi(
testData.centralSharedAlternativeTitleTypes,
);
FormatsConsortiumManager.deleteViaApi(testData.centralSharedFormats);
InstanceNoteTypesConsortiumManager.deleteViaApi(testData.centralSharedInstanceNoteTypes);
InstanceStatusTypeConsortiumManager.deleteViaApi(testData.centralSharedInstanceStatusTypes);
ModesOfIssuanceConsortiumManager.deleteViaApi(testData.centralSharedModesOfIssuance);
NatureOfContentConsortiumManager.deleteViaApi(testData.centralSharedNatureOfContent);
ResourceIdentifierTypesConsortiumManager.deleteViaApi(
testData.centralSharedResourceIdentifierTypes,
);
ResourceTypesConsortiumManager.deleteViaApi(testData.centralSharedResourceTypes);
Users.deleteViaApi(testData.user400671.userId);
});

it(
'C400671 User is NOT able to edit and delete from member tenant "Inventory - Instances" settings shared via "Consortium manager" app (consortia) (thunderjet)',
{ tags: ['criticalPathECS', 'thunderjet'] },
() => {
ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.college);
cy.visit(SettingsMenu.alternativeTitleTypes);
AlternativeTitleTypes.verifyConsortiumAlternativeTitleTypesInTheList(
testData.centralSharedAlternativeTitleTypes.payload,
);
ClassificationIdentifierTypes.choose();
ClassificationIdentifierTypes.verifyConsortiumClassificationIdentifierTypesInTheList(
testData.centralSharedClassificationIdentifierTypes.payload,
);
ContributorTypes.choose();
ContributorTypes.verifyConsortiumContributorTypesInTheList(
testData.centralSharedContributorTypes.payload,
);
Formats.choose();
Formats.verifyConsortiumFormatsInTheList(testData.centralSharedFormats.payload);
InstanceNoteTypes.choose();
InstanceNoteTypes.verifyConsortiumInstanceNoteTypesInTheList(
testData.centralSharedInstanceNoteTypes.payload,
);
InstanceNoteTypes.verifyLocalInstanceNoteTypesInTheList(
testData.collegeLocalInstanceNoteTypes,
);
InstanceNoteTypes.clickTrashButtonForInstanceNoteTypes(
testData.collegeLocalInstanceNoteTypes.name,
);
InstanceNoteTypes.verifyInstanceNoteTypesAbsentInTheList(
testData.collegeLocalInstanceNoteTypes,
);

ConsortiumManager.switchActiveAffiliation(tenantNames.college, tenantNames.university);
cy.visit(SettingsMenu.instanceStatusTypesPath);
InstanceStatusTypes.verifyConsortiumInstanceStatusTypesInTheList(
testData.centralSharedInstanceStatusTypes.payload,
);
InstanceStatusTypes.verifyInstanceStatusTypesAbsentInTheList(
testData.collegeLocalInstanceNoteTypes,
);
InstanceStatusTypes.verifyLocalInstanceStatusTypesInTheList(
testData.universityLocalInstanceStatusTypes,
);
InstanceStatusTypes.clickTrashButtonForInstanceStatusTypes(
testData.universityLocalInstanceStatusTypes.name,
);
InstanceStatusTypes.verifyInstanceStatusTypesAbsentInTheList(
testData.universityLocalInstanceStatusTypes,
);
cy.visit(SettingsMenu.modesOfIssuancePath);
ModesOfIssuance.verifyConsortiumModesOfIssuancesInTheList(
testData.centralSharedModesOfIssuance.payload,
);
NatureOfContent.choose();
NatureOfContent.verifyConsortiumNatureOfContentInTheList(
testData.centralSharedNatureOfContent.payload,
);
ResourceIdentifierTypes.choose();
ResourceIdentifierTypes.verifyConsortiumResourceIdentifierTypesInTheList(
testData.centralSharedResourceIdentifierTypes.payload,
);
ResourceTypes.choose();
ResourceTypes.verifyConsortiumResourceTypesInTheList(
testData.centralSharedResourceTypes.payload,
);
},
);
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ describe('MARC', () => {
testData.marcAuthFile.jobProfileToRun,
).then((response) => {
response.entries.forEach((record) => {
testData.createdRecordIDs.push(record[testData.marcAuthFile.propertyName].idList[0]);
testData.createdRecordIDs.push(
record[testData.marcAuthFile.propertyName].idList[0],
);
});
});

Expand Down
16 changes: 16 additions & 0 deletions cypress/support/dictionary/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,22 @@ export default {
internal: 'ui-inventory.settings.nature-of-content-terms',
gui: 'Settings (Inventory): Create, edit, delete nature of content',
},
crudContributorTypes: {
internal: 'ui-inventory.settings.contributor-types',
gui: 'Settings (Inventory): Create, edit, delete contributor types',
},
crudFormats: {
internal: 'ui-inventory.settings.instance-formats',
gui: 'Settings (Inventory): Create, edit, delete formats',
},
crudDefinedResourceTypes: {
internal: 'ui-inventory.settings.nature-of-content-terms',
gui: 'Settings (Inventory): Create, edit, delete locally defined resource types',
},
crudResourceIdentifierTypes: {
internal: 'ui-inventory.settings.identifier-types',
gui: 'Settings (Inventory): Create, edit, delete resource identifier types',
},
// Tags
uiTagsPermissionAll: { internal: 'ui-tags.permission.all', gui: 'Tags: All permissions' },
uiViewTagsSettings: {
Expand Down

0 comments on commit d220782

Please sign in to comment.