blob: 6bf16c851624563c7a4cbfcf72832c6686b8e3fc [file] [log] [blame]
Einat Vinouze91d3f652019-09-03 14:52:13 +03001///<reference path="../../../node_modules/cypress/types/index.d.ts"/> / <reference types="Cypress" />
2
3import {JsonBuilder} from "../../support/jsonBuilders/jsonBuilder";
4import {AAISubDetailsModel} from "../../support/jsonBuilders/models/aaiSubDetails.model";
5
6describe('Change management AKA VNF changes', function () {
7 var jsonBuilderAAISubDetailsModel: JsonBuilder<AAISubDetailsModel> = new JsonBuilder<AAISubDetailsModel>();
8
9 //describe('Contact us', () => {
10
11 beforeEach(() => {
12 cy.login();
13 cy.initAAIMock();
14
Ittay Stern607ea3d2019-10-23 17:10:52 +030015 cy.readFile('cypress/support/jsonBuilders/mocks/jsons/defect710619/aaiSubDetailsE2E.json').then((res) => {
Einat Vinouze91d3f652019-09-03 14:52:13 +030016 jsonBuilderAAISubDetailsModel.basicJson(
17 res,
18 Cypress.config('baseUrl') + "/aai_sub_details/e433710f-9217-458d-a79d-1c7aff376d89**",
19 200,
20 0,
21 "aai-sub-details")
22 });
23
24 });
25
26 afterEach(() => {
27 cy.screenshot();
28 });
29
30 it(`verifying + VNF changes`, function () {
31 cy.visit('/serviceModels.htm#/change-management');
32 cy.getElementByDataTestsId('create-new-change-management').click();
33 cy.getElementByDataTestsId('newChangeManagementForm');
34 cy.selectDropdownOptionByText('subscriberName', 'SILVIA ROBBINS');
35 cy.selectDropdownOptionByText('serviceType', 'TYLER SILVIA');
36 });
37});
38
39