summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-12-26 10:30:01 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-26 10:30:01 +0000
commit3795519f98415037e9d567af85f8eafd2948971d (patch)
tree8e46c09d2de99b01c68918e3541fc9cd4fdb6e46 /vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts
parentf3174649f08795cdb04bf8e8e2735408dd91578a (diff)
parent035cbb909b5b39bf735fb215dd6fa79d1342c39b (diff)
Merge "Use popup-sized viewport on Cypress tests where relevant"
Diffstat (limited to 'vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts')
-rw-r--r--vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts
index d892bf65b..dd17e7db5 100644
--- a/vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts
+++ b/vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts
@@ -110,10 +110,7 @@ describe('Template', () => {
cy.route(Cypress.config('baseUrl') + "/instantiationTemplates**", instantiationTemplates);
cy.route(Cypress.config('baseUrl') + "/getuserID", '16807000');
- cy.openIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true');
-
-
-
+ cy.openPopupIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true');
});
@@ -172,7 +169,7 @@ describe('Template', () => {
const vidBaseUrl = `http://localhost:8080/vid/serviceModels.htm`;
cy.getElementByDataTestsId('row-5c2cd8e5-27d0-42e3-85a1-85db5eaba459').click();
- cy.getElementByDataTestsId('LoadTemplateButton').click()
+ cy.getElementByDataTestsId('LoadTemplateButton').click().setViewportToDefault();
cy.location().should((loc) => {
expect(loc.toString()).to.eq(`${vidBaseUrl}#/servicePlanning/RECREATE?serviceModelId=${serviceModelId}&jobId=${jobId}`);