From 91d3f65455177e10eb22d639afcc00cde6ad90a2 Mon Sep 17 00:00:00 2001 From: Einat Vinouze Date: Tue, 3 Sep 2019 14:52:13 +0300 Subject: change management cypress This is the very first cypress test for change management Issue-ID: VID-596 Signed-off-by: Einat Vinouze Change-Id: Ib3ddc5d88504392281dbd25c3d6688714a01a643 --- .../integration/iFrames/changeManagement.e2e.ts | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 vid-webpack-master/cypress/integration/iFrames/changeManagement.e2e.ts (limited to 'vid-webpack-master/cypress/integration/iFrames/changeManagement.e2e.ts') diff --git a/vid-webpack-master/cypress/integration/iFrames/changeManagement.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/changeManagement.e2e.ts new file mode 100644 index 000000000..b5a01be09 --- /dev/null +++ b/vid-webpack-master/cypress/integration/iFrames/changeManagement.e2e.ts @@ -0,0 +1,39 @@ +/// / + +import {JsonBuilder} from "../../support/jsonBuilders/jsonBuilder"; +import {AAISubDetailsModel} from "../../support/jsonBuilders/models/aaiSubDetails.model"; + +describe('Change management AKA VNF changes', function () { + var jsonBuilderAAISubDetailsModel: JsonBuilder = new JsonBuilder(); + + //describe('Contact us', () => { + + beforeEach(() => { + cy.login(); + cy.initAAIMock(); + + cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/defect710619/aaiSubDetailsE2E.json').then((res) => { + jsonBuilderAAISubDetailsModel.basicJson( + res, + Cypress.config('baseUrl') + "/aai_sub_details/e433710f-9217-458d-a79d-1c7aff376d89**", + 200, + 0, + "aai-sub-details") + }); + + }); + + afterEach(() => { + cy.screenshot(); + }); + + it(`verifying + VNF changes`, function () { + cy.visit('/serviceModels.htm#/change-management'); + cy.getElementByDataTestsId('create-new-change-management').click(); + cy.getElementByDataTestsId('newChangeManagementForm'); + cy.selectDropdownOptionByText('subscriberName', 'SILVIA ROBBINS'); + cy.selectDropdownOptionByText('serviceType', 'TYLER SILVIA'); + }); +}); + + -- cgit 1.2.3-korg