blob: a9ade182cebb69cea8b795024497b115a941675c [file] [log] [blame]
Rachitha Ramappa226ef712020-09-23 12:42:19 +05301import {JsonBuilder} from "../../support/jsonBuilders/jsonBuilder";
2import {AsyncInstantiationModel} from "../../support/jsonBuilders/models/asyncInstantiation.model";
3import {ServiceModel} from "../../support/jsonBuilders/models/service.model";
4
5describe('Audit Information model', function () {
6 describe('Export MSO status', function (){
7 var jsonBuilderInstantiationBuilder: JsonBuilder<AsyncInstantiationModel> = new JsonBuilder<AsyncInstantiationModel>();
8 var jsonBuilderAndMock: JsonBuilder<ServiceModel> = new JsonBuilder<ServiceModel>();
9 beforeEach(() => {
10 cy.clearSessionStorage();
11 cy.setReduxState();
12 cy.preventErrorsOnLoading();
13 jsonBuilderInstantiationBuilder.basicMock('cypress/support/jsonBuilders/mocks/jsons/asyncInstantiation.json',
14 Cypress.config('baseUrl') + "/asyncInstantiation**");
15 cy.initAAIMock();
16 cy.initVidMock();
17 cy.initAsyncInstantiation();
18 cy.login();
19 });
20
21 afterEach(() => {
22 cy.screenshot();
23 });
24
25 it(`should display 2 tables with information's`, function () {
26 cy.initAuditInfoMSOALaCarte();
27 cy.openIframe('app/ui/#/instantiationStatus');
28
29 cy.get('#b1ff271b-829a-43f9-a2e3-23987a34f261 > #jobStatus > .menu-div > .icon-menu').click({force: true}).then(() =>{
30 cy.getElementByDataTestsId('context-menu-audit-info').click();
31 cy.wait(1000);
32 cy.getElementByDataTestsId('export-button').click();
33 });
34
35
36 });
37 })
38})