diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-12-26 09:39:43 +0200 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-12-26 11:19:30 +0200 |
commit | 035cbb909b5b39bf735fb215dd6fa79d1342c39b (patch) | |
tree | 3343ec27c8dfbd8358ca87c8f4d5bc24ba871281 /vid-webpack-master/cypress/integration/iFrames/auditInfo.modal.e2e.ts | |
parent | c9a71e231684573c46b6b2b5d7d74dda926d0c91 (diff) |
Use popup-sized viewport on Cypress tests where relevant
The smaller viewport let more authentic tests, and a real-life look-and-feel.
It is used on:
- New Service popup
- Audit-info of Instantiation Status
- Templates modal
Issue-ID: VID-724
Change-Id: I4f9928a3f730085bd66f5920a14b3a44ef5a23ba
Signed-off-by: Ittay Stern <ittay.stern@att.com>
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'); }); }) |