aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2020-01-06 11:45:35 +0000
committerGerrit Code Review <gerrit@onap.org>2020-01-06 11:45:35 +0000
commit794218e76ef533adf10815c789c513721336ea4d (patch)
tree7ce99e2602f63a1bc75647e1d8143b78a5499195 /vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts
parentfd03c225db2e436e5dc957d9e50b5b89646d3d1c (diff)
parent39a8639ddd4f9821c207cfa53264a475dcca8cf2 (diff)
Merge "Hide Templates entry point when no instances"
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.ts9
1 files changed, 7 insertions, 2 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 73d311555..0db1b099a 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
@@ -71,7 +71,7 @@ describe('Template', () => {
cy.route(Cypress.config('baseUrl') + "/getuserID", 'us16807000');
- cy.openPopupIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true');
+ cy.openPopupIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true&hasTemplate=true');
});
@@ -117,10 +117,15 @@ describe('Template', () => {
cy.getElementByDataTestsId('filterByUserIdTestId').click();
cy.get('.member-table-row').should('have.length', 1);
+
+ // navigate to service modal -> should show Template button
+ cy.getElementByDataTestsId('startFromScratchButton').click().then(()=>{
+ cy.getElementByDataTestsId('templateButton').should('be.visible')
+ });
+
});
it('clicking on load template button, go to expected url', function () {
-
cy.getElementByDataTestsId('templateButton').contains('Template')
.getElementByDataTestsId('templateButton').click({force: true}) // Open template Modal