describe('Drawing board : Collection resource', function () {
let jsonBuilderAndMock: JsonBuilder<ServiceModel> = new JsonBuilder<ServiceModel>();
-
+ const serviceModelId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
beforeEach(() => {
- cy.window().then((win) => {
- win.sessionStorage.clear();
+ cy.clearSessionStorage();
cy.preventErrorsOnLoading();
cy.initAAIMock();
cy.initVidMock();
cy.login();
- });
});
afterEach(() => {
describe('should show collection resource model correctly', () => {
it('collection type + name', () => {
- const serviceModelId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
+
const collectionResourceName: string = "CR_sanity 0";
initDrawingBoardWithColectionResource(serviceModelId, collectionResourceName);
cy.get('.vf-type').contains('CR');
});
it('collection resource component info', () => {
- const serviceModelId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
const collectionResourceName: string = "CR_sanity 0";
const redux = initDrawingBoardWithColectionResource(serviceModelId, collectionResourceName)
cy.getElementByDataTestsId(`node-${collectionResourceName}`).click().then(()=>{
'node-type-indicator': 'CR',
'node-name': 'NcmVlanSvcYm161f_77_vTSBC Customer Landing Network Collection'
},
- 'node-undefined-undefined': {
+ 'node-dd182d7d-6949-4b90-b3cc-5befe400742e-undefined': {
'node-type-indicator': 'NCF',
'node-name': 'NcmVlanSvcYm161f_77_vTSBC Customer Landing Network Collection'
}
],
title: "Collection Resource Instance INFO"
},
- 'node-undefined-undefined': {
+ 'node-dd182d7d-6949-4b90-b3cc-5befe400742e-undefined': {
labelsAndValues: [
['Model version', "1"],
['Instance ID', '6b3536cf-3a12-457f-abb5-fa2203e0d923'],
"FLAG_1810_CR_ADD_CLOUD_OWNER_TO_MSO_REQUEST": true,
"FLAG_SHOW_VERIFY_SERVICE": true,
"FLAG_1902_NEW_VIEW_EDIT": true,
- "EMPTY_DRAWING_BOARD_TEST": false,
"FLAG_ADD_MSO_TESTAPI_FIELD": true,
"FLAG_1906_INSTANTIATION_API_USER_VALIDATION": true,
"FLAG_EXP_CREATE_RESOURCES_IN_PARALLEL": false,
"FLAG_PRESENT_PROVIDER_NETWORKS_ASSOCIATIONS": true,
"FLAG_NETWORK_TO_ASYNC_INSTANTIATION": false,
- "FLAG_DEFAULT_VNF": true,
- "FLAG_1810_CR_SOFT_DELETE_ALACARTE_VF_MODULE": true,
"FLAG_ASYNC_ALACARTE_VFMODULE": true,
"FLAG_FABRIC_CONFIGURATION_ASSIGNMENTS": true,
"FLAG_ASYNC_ALACARTE_VNF": true,
"FLAG_SERVICE_MODEL_CACHE": true,
"FLAG_1902_RETRY_JOB": true,
"FLAG_EXP_ANY_ALACARTE_NEW_INSTANTIATION_UI": true,
- "CREATE_INSTANCE_TEST": false,
- "FLAG_SETTING_DEFAULTS_IN_DRAWING_BOARD": true,
"FLAG_1906_AAI_SUB_DETAILS_REDUCE_DEPTH": true,
"FLAG_VF_MODULE_RESUME_STATUS_CREATE": true,
"FLAG_SUPPLEMENTARY_FILE": true,