Einat Vinouze | 91d3f65 | 2019-09-03 14:52:13 +0300 | [diff] [blame] | 1 | ///<reference path="../../../node_modules/cypress/types/index.d.ts"/> / <reference types="Cypress" /> |
| 2 | |
| 3 | import {JsonBuilder} from "../../support/jsonBuilders/jsonBuilder"; |
| 4 | import {AAISubDetailsModel} from "../../support/jsonBuilders/models/aaiSubDetails.model"; |
| 5 | |
| 6 | describe('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 Stern | 607ea3d | 2019-10-23 17:10:52 +0300 | [diff] [blame^] | 15 | cy.readFile('cypress/support/jsonBuilders/mocks/jsons/defect710619/aaiSubDetailsE2E.json').then((res) => { |
Einat Vinouze | 91d3f65 | 2019-09-03 14:52:13 +0300 | [diff] [blame] | 16 | 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 | |