diff options
author | Rachitha Ramappa <rachitha.ramappa@att.com> | 2020-09-23 12:42:19 +0530 |
---|---|---|
committer | Ikram Ikramullah <ikram@research.att.com> | 2020-10-08 10:53:16 +0000 |
commit | 226ef715d7afe3758fbc88c05cf4d752c6bed51b (patch) | |
tree | 26915a243c02d977cd906937330234860cbed6dd /vid-webpack-master/cypress/integration/iFrames | |
parent | 30eb0655f49fd3565d737b91146baf9ce4e02f9d (diff) |
New audit info screen changes7.0.0
Audit screen css changes and export mso status to external file
Change-Id: I71d577121e18090eab7a388ed01707823e45ac82
Issue-ID: VID-901
Signed-off-by: rachitha.ramappa@att.com
Diffstat (limited to 'vid-webpack-master/cypress/integration/iFrames')
-rw-r--r-- | vid-webpack-master/cypress/integration/iFrames/auditInfo.modal.e2e.ts | 24 | ||||
-rw-r--r-- | vid-webpack-master/cypress/integration/iFrames/exportMSOStatusToCSV.e2e.ts | 38 |
2 files changed, 55 insertions, 7 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/auditInfo.modal.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/auditInfo.modal.e2e.ts index 16ed21935..c28d77b79 100644 --- a/vid-webpack-master/cypress/integration/iFrames/auditInfo.modal.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/auditInfo.modal.e2e.ts @@ -31,11 +31,7 @@ describe('Audit information modal', function () { cy.get('.icon-menu').eq(index).click({force: true}).then(()=>{ cy.getElementByDataTestsId('context-menu-audit-info').click({force:true}).then(()=>{ cy.setViewportToSmallPopup(); - cy.get('#service-model-name').should('contain', row.find('#serviceModelName').text().trim()) - .getElementByDataTestsId('model-item-value-userId').should('contain', row.find('#userId').text().trim()) - .get('#service-instantiation-audit-info-vid').should('be.visible') - .get('#service-instantiation-audit-info-vid').find('#vidJobStatus').should('be.visible') - .get('#service-instantiation-audit-info-mso').should('be.visible') + cy.get('#service-instantiation-audit-info-mso').should('be.visible') .get('#service-instantiation-audit-info-mso').find('#msoJobStatus').should('be.visible') .get('#cancelButton').click({force: true}) .setViewportToDefault(); @@ -64,8 +60,8 @@ describe('Audit information modal', function () { cy.setViewportToSmallPopup(); cy.get('#service-instantiation-audit-info-mso thead tr th#instanceName').should("be.visible") .get('#service-instantiation-audit-info-mso tbody tr').each(function (row, index) { - assert.equal(row.find('.request-id').text().trim(), res[index]['requestId']); - assert.equal(row.find('.msoInstanceName').text().trim(), 'service: ' + res[index]['instanceName']); + assert.equal(row.find('#msoRequestId').text().trim(), res[index]['requestId']); + assert.equal(row.find('.msoInstanceName').text().trim(), res[index]['instanceName']); assert.equal(row.find('#msoJobStatus').text().trim(), _.capitalize(res[index]['jobStatus'])); assert.equal(row.find('#msoAdditionalInfo span').text().trim(), res[index]['additionalInfo']); }); @@ -84,5 +80,19 @@ describe('Audit information modal', function () { }) }); + it('Refresh link should be visible and clicking refresh should fetch latest data', function () { + cy.initAuditInfoMSOALaCarte(); + cy.openIframe('app/ui/#/instantiationStatus'); + cy.get('.instantiation-status-data tbody tr').each(function (row, index) { + cy.get('.icon-menu').eq(index).click({force: true}).then(()=>{ + cy.getElementByDataTestsId('context-menu-audit-info').click({force:true}).then(()=>{ + cy.setViewportToSmallPopup(); + cy.get('#refreshButton').should('be.visible'); + }) + + }) + }); + }); + }); }); diff --git a/vid-webpack-master/cypress/integration/iFrames/exportMSOStatusToCSV.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/exportMSOStatusToCSV.e2e.ts new file mode 100644 index 000000000..a9ade182c --- /dev/null +++ b/vid-webpack-master/cypress/integration/iFrames/exportMSOStatusToCSV.e2e.ts @@ -0,0 +1,38 @@ +import {JsonBuilder} from "../../support/jsonBuilders/jsonBuilder"; +import {AsyncInstantiationModel} from "../../support/jsonBuilders/models/asyncInstantiation.model"; +import {ServiceModel} from "../../support/jsonBuilders/models/service.model"; + +describe('Audit Information model', function () { + describe('Export MSO status', function (){ + var jsonBuilderInstantiationBuilder: JsonBuilder<AsyncInstantiationModel> = new JsonBuilder<AsyncInstantiationModel>(); + var jsonBuilderAndMock: JsonBuilder<ServiceModel> = new JsonBuilder<ServiceModel>(); + beforeEach(() => { + cy.clearSessionStorage(); + cy.setReduxState(); + cy.preventErrorsOnLoading(); + jsonBuilderInstantiationBuilder.basicMock('cypress/support/jsonBuilders/mocks/jsons/asyncInstantiation.json', + Cypress.config('baseUrl') + "/asyncInstantiation**"); + cy.initAAIMock(); + cy.initVidMock(); + cy.initAsyncInstantiation(); + cy.login(); + }); + + afterEach(() => { + cy.screenshot(); + }); + + it(`should display 2 tables with information's`, function () { + cy.initAuditInfoMSOALaCarte(); + cy.openIframe('app/ui/#/instantiationStatus'); + + cy.get('#b1ff271b-829a-43f9-a2e3-23987a34f261 > #jobStatus > .menu-div > .icon-menu').click({force: true}).then(() =>{ + cy.getElementByDataTestsId('context-menu-audit-info').click(); + cy.wait(1000); + cy.getElementByDataTestsId('export-button').click(); + }); + + + }); + }) +}) |