diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-12-26 10:30:01 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-12-26 10:30:01 +0000 |
commit | 3795519f98415037e9d567af85f8eafd2948971d (patch) | |
tree | 8e46c09d2de99b01c68918e3541fc9cd4fdb6e46 /vid-webpack-master/cypress/integration/iFrames/auditInfo.modal.e2e.ts | |
parent | f3174649f08795cdb04bf8e8e2735408dd91578a (diff) | |
parent | 035cbb909b5b39bf735fb215dd6fa79d1342c39b (diff) |
Merge "Use popup-sized viewport on Cypress tests where relevant"
Diffstat (limited to 'vid-webpack-master/cypress/integration/iFrames/auditInfo.modal.e2e.ts')
-rw-r--r-- | vid-webpack-master/cypress/integration/iFrames/auditInfo.modal.e2e.ts | 7 |
1 files changed, 6 insertions, 1 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 ee147a944..16ed21935 100644 --- a/vid-webpack-master/cypress/integration/iFrames/auditInfo.modal.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/auditInfo.modal.e2e.ts @@ -30,13 +30,15 @@ describe('Audit information modal', function () { 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('#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') .get('#service-instantiation-audit-info-mso').find('#msoJobStatus').should('be.visible') - .get('#cancelButton').click({force:true}); + .get('#cancelButton').click({force: true}) + .setViewportToDefault(); }) }); }); @@ -46,6 +48,7 @@ describe('Audit information modal', function () { cy.openIframe('app/ui/#/instantiationStatus'); cy.get('.icon-menu').eq(0).click({force:true}).then(() => { cy.getElementByDataTestsId('context-menu-audit-info').click({force:true}).then(() => { + cy.setViewportToSmallPopup(); cy.get('#service-instantiation-audit-info-mso thead tr th#instanceName').should("not.be.visible") .get('#service-instantiation-audit-info-mso tbody tr td.msoInstanceName').should("not.be.visible"); }) @@ -58,6 +61,7 @@ describe('Audit information modal', function () { cy.openIframe('app/ui/#/instantiationStatus'); cy.get('.icon-menu').eq(7).click({force:true}).then(() => { cy.getElementByDataTestsId('context-menu-audit-info').click({force:true}).then(() => { + 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']); @@ -74,6 +78,7 @@ describe('Audit information modal', function () { cy.openIframe('app/ui/#/instantiationStatus'); cy.get('.icon-menu').eq(7).click().then(() => { cy.getElementByDataTestsId('context-menu-audit-info').click().then(() => { + cy.setViewportToSmallPopup(); cy.get('#glossary_link').should('be.visible'); }); }) |